Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create an Environment Variable Using a ScriptContent of Create an Environment Variable Using a Script.vbsMD5 Hash: A580C93BCDFF6C4FD976896CD66F34BC |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set objVariable = objWMIService.Get("Win32_Environment").SpawnInstance_ objVariable.Name = "TestValue" objVariable.UserName = "System" objVariable.VariableValue = "This is a test" objVariable.Put_ | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |