Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Restore the Default Terminal Service PermissionsContent of Restore the Default Terminal Service Permissions.vbsMD5 Hash: 1E8671D092B09EB01B6792546EFB1D19 |
||
' 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 :: |