Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Environment Variables on a ComputerContent of List Environment Variables on a Computer.vbsMD5 Hash: A83D9E4E406CE6231872A0998265B5AF |
||
' Description: Uses WMI to return information about all the environment variables on a computer.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_Environment") For Each objItem in colItems Wscript.Echo "Description: " & objItem.Description Wscript.Echo "Name: " & objItem.Name Wscript.Echo "System Variable: " & objItem.SystemVariable Wscript.Echo "User Name: " & objItem.UserName Wscript.Echo "Variable Value: " & objItem.VariableValue Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |