|
All,
I used the following script to force a background colour onto the machines at logon, but...
************************************************** ; * Force Background Color settings for NT systems [Begin] * ; * Only applies settings to workstations ; * This will not take effect until the next time the system is rebooted... ; * Possible settings: ; * $bgcolor: RGB values as 'r g b'
if existkey($HKLM+'\System\CurentControlSet\Control\Terminal Server')=0 $TerminalServer=1 endif
$RegKey='$HKCU\Control Panel\Colors'
select case 1 ; workstation $Bgcolor = '51 154 153'
endselect
$result=writevalue('$RegKey','Background','$Bgcolor','REG_SZ') *************************************************
NOW... the settings get applied, but only after you reboot twice! Im assuming Ive missed out an "apply" line of some sort.
Anybody have any ideas?
Thanks again
K
|