Bcolvin
Technical User
- Sep 23, 2003
- 10
Okay, I'm very new at VBScripting but I've managed to create a login script for out NT4.0 Domain. Currently the script will map drives, printers and set a defined desktop image based on department, but I can't seem to change the background color at initial login but instead the changes are reflected after rebooting.
Here's how I'm currently making the change:
oShell.RegWrite "HKCU\Control Panel\Desktop\TileWallpaper","0","REG_SZ"
oShell.RegWrite "HKCU\Control Panel\Colors\Background","0 0 128","REG_SZ"
oShell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", sWallPaper
oShell.RegWrite "HKCU\Control Panel\Desktop\ScreenSaveTimeOut","900","REG_SZ"
oShell.Run _
"%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", _
1, True
Any ideas?
Thanks.
Here's how I'm currently making the change:
oShell.RegWrite "HKCU\Control Panel\Desktop\TileWallpaper","0","REG_SZ"
oShell.RegWrite "HKCU\Control Panel\Colors\Background","0 0 128","REG_SZ"
oShell.RegWrite "HKCU\Control Panel\Desktop\Wallpaper", sWallPaper
oShell.RegWrite "HKCU\Control Panel\Desktop\ScreenSaveTimeOut","900","REG_SZ"
oShell.Run _
"%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", _
1, True
Any ideas?
Thanks.