Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Add a Terminal Services Direct Connect License ServerContent of Add a Terminal Services Direct Connect License Server.vbsMD5 Hash: C8A4B779949F98D4C08997700F2CC6DA |
||
' Description: Adds the computer atl-ts-01 as a direct connect license server to 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.AddDirectConnectLicenseServer("atl-ts-01") Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |