Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Terminal Services Color DepthContent of Modify Terminal Services Color Depth.vbsMD5 Hash: BA75CAEF2BDC32DE706A4C93C5121835 |
||
' Description: Configures Terminal Services to use 16-bit color for client sessions. To use 8-bit color, pass the value 1 (rather than 3) to the SetColorDepth method. Pass the value 4 to use 24-bit color.
Const SIXTEEN_BIT_COLOR = 3 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_TSClientSetting") For Each objItem in colItems errResult = objItem.SetColorDepth(SIXTEEN_BIT_COLOR) Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |