![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Get Just the User Name When Using the Win32_ComputerSystem Class
|
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * From Win32_ComputerSystem") For Each objItem in colItems Wscript.Echo objItem.UserName Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |