Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete a Terminal Service Direct Connect License ServerContent of Delete a Terminal Service Direct Connect License Server.vbsMD5 Hash: EB365451967889D5968825CEDC404822 |
||
' Description: Removes the computer atl-ts-01 as a direct connect license server for a computer running Terminal Services.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_TerminalServiceSetting") For Each objItem in colItems errResult = objItem.DeleteDirectConnectLicenseServer("atl-ts-01") Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |