Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Terminal Services Session Directory LocationContent of Modify Terminal Services Session Directory Location.vbsMD5 Hash: 0CF5C1BCD7F59D24944E5DD5CE710123 |
||
' Description: Sets the session directory location of a Terminal Services server to 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 errResult = objItem.SetSessionDirectoryProperty _ ("SessionDirectoryLocation", "192.168.1.3") Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |