Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Terminal Services Home DirectoryContent of Modify Terminal Services Home Directory.vbsMD5 Hash: E29991F9FE530FFB69D2AED46A107F6A |
||
' Description: Configures the default home directory on a Terminal Services server to C:\TSUsers.
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.SetHomeDirectory("c:\tsusers") Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |