Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Enable Terminal Services Active DesktopContent of Enable Terminal Services Active Desktop.vbsMD5 Hash: 459496D5DA881895D16EC9475272FF68 |
||
' Description: Enables Terminal Services Active Desktop on a computer. To disable Active Desktop, set the value of the ActiveDesktop property to 0 instead of 1.
Const ENABLED = 1 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_TerminalServiceSetting") For Each objItem in colItems objItem.ActiveDesktop = ENABLED objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |