Environment Variable System Add Vbscript VBS

In Knowledge Base Blog by angeladmin

Set objVarClass = GetObject(“winmgmts:.rootcimv2:Win32_Environment”)
set objVar = objVarClass.SpawnInstance_
objVar.Name = “SSTERM”
objVar.VariableValue = “2”
objVar.UserName = “”
objVar.Put_

Angel Computers – Contact Us