var enmProfile = new Enumerator(GetObject("winmgmts:").InstancesOf("Win32_NetworkLoginProfile"));
var arr = new Array("用户名 最后登录时间");
while(!enmProfile.atEnd())
{
arr.push(enmProfile.item().Name + "\t" + enmProfile.item().LastLogon);
enmProfile.moveNext();
}
WSH.Echo(arr.join("\r\n"));