Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Terminal Services Session Directory IP AddressContent of Modify Terminal Services Session Directory IP Address.vbsMD5 Hash: EDDEAAF601AF104C15DAA62B72B8B026 |
||
' Description: Configures Terminal Services to use a session directory with the IP address of 192.168.1.3.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_TSSessionDirectory") For Each objItem in colItems objItem.SessionDirectoryIPAddress = "192.168.1.3" objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |