var enmProfile = new Enumerator(GetObject("winmgmts:" ).InstancesOf("Win32_NetworkLoginProfile"));
var arr = new Array("Username last login time");
while(!enmProfile.atEnd())
{
arr.push (enmProfile.item().Name "t" enmProfile.item().LastLogon);
enmProfile.moveNext();
}
WSH.Echo(arr.join("rn"));