Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify the Terminal Services CommentContent of Modify the Terminal Services Comment.vbsMD5 Hash: 6328D3EE0E8D05CAFAAE02BF6BE3A198 |
||
' Description: Modifies the descriptive comment attached to a Terminal Services server.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_TSGeneralSetting") For Each objItem in colItems objItem.Comment = "Accounting session." objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |