Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Terminal Services Profile PathContent of Modify Terminal Services Profile Path.vbsMD5 Hash: 1F2DB8A64EDBAE193AA75EE1FA5F3BD2 |
||
' Description: Sets the Terminal Services profile path on a computer to C:\TSProfiles.
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.SetProfilePath("c:\tsprofiles") Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |