![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Rename a Terminal Service Terminal
|
||
' Description: Renames the Terminal Services terminal RDP-tcp (the default name) to Accounting.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_Terminal Where TerminalName = 'RDP-tcp'") For Each objItem in colItems errResult = objItem.Rename("Accounting") Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |