![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Add a Terminal Services Direct Connect License Server
|
||
' 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 :: |