Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Terminal Services User PermissionsContent of Modify Terminal Services User Permissions.vbsMD5 Hash: A5C438A2B7A0BE18AFECE0A76C825C79 |
||
' Description: Enables Terminal Services application compatibility. To disable application compatibility, set the value of the UserPermission 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.UserPermission = ENABLED objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |