![]() Loading |
| VBScript |
| JavaScript |
| Powershell |
Search Options: Restore the Default Terminal Service Permissions
|
||
|
' Description: Restores the default permission settings for all the Terminal Service accounts on a computer.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_TSPermissionsSetting") For Each objItem in colItems errResult = objItem.RestoreDefaults() Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: | ||