Home >Web Front-end >JS Tutorial >A piece of jscript code that uses WSH to obtain the login time_javascript skills

A piece of jscript code that uses WSH to obtain the login time_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 19:04:531173browse

Copy code The code is as follows:

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"));
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn