I'm working on a new login script (.vbs) for our Windows 7 stations, and one line item is to set the desktop wallpaper.
I can seccessfully set the registry key (HKEY_CURRENT_USER\Control
Panel\Desktop\Wallpaper) to the desired file. I can verify this by checking in the registry itself, and it is also correctly identified as the current background when right-clicking on the desktop and selecting "Personalize". However, the new wallpaper setting is not actually applied to the desktop.
I added a next line in the login script to try and force an update (i.e. http://www.pcreview.co.uk/forums/thread-1579775.php
) using rundll.exe user32.dll, but that does not seem to apply the background, either. Even if I try and run the rundll.exe command manually from the command prompt, nothing changes...
I am currently logged in with an account that is in the local admin group, so I wouldn't think it's a permissions thing, but since it's not working, I have no clue. I also saw a few places online talking about needing to make sure it is a specific file format, so I've tried .png, .jpg, and .bmp, all to no avail. Is there something different I need to be doing on Win7?