Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Terminal Services Maximum ConnectionsContent of Modify Terminal Services Maximum Connections.vbsMD5 Hash: 6FDB2F0A7EBA9425725378924F5EBF14 |
||
' Description: Sets the maximum number of connections allowed on a Terminal Services network adapter to 100.
Const MAXIMUM_CONNECTIONS = 100 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_TSNetworkAdapterSetting") For Each objItem in colItems objItem.MaximumConnections = MAXIMUM_CONNECTIONS objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |