Desktop Wallpaper - Refresh

N

Neilo

We have an annoying little problem, that I'm hoping someone can give me a
quick fix to.

As part of our group policy, all PCs run a little login script that copies
an image to the local machine, and then this is set to be the desktop
wallpaper. However, more often than not, when a PC has finished logging on,
the image is not displayed correctly, as though it hasn’t finished loading.
Usually, only the top section of the image is displayed. This is simply
cured by right clicking, and choosing Refresh, but surely there must be a way
to automate this? Is there a keyboard shortcut we can include in the login
script to refresh?
 
E

Elmo

Neilo said:
Or, does anyone know why this may be happening in the first place?

Maybe if you assign a filename for the background, then change the
content of the file whenever you want. This might cause the file to be
loaded completely before it's called upon. A late assignment of the
background filename might be causing the incomplete load.. just a
thought.. I have no idea if this will help. But I had a batch file in a
config file years ago, that would rename three images, and always have
"image1.bmp" as the background image. Since the file was reassigned
before Windows loaded, the image was always complete. I probably did
this on a W98 machine.

F5 is an easier way to refresh the screen. You have to be looking at
the Desktop, of course.
 
J

John John - MVP

RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True

You might want to have a delay before you run it, or you can put it in
the %allusersprofile%\Start Menu\Programs\Startup or the
%userprofile%\Start Menu\Programs\Startup so that it runs after the
startup script. If you don't want it in the startup folder you could
run it from the registry Run keys.

Just as easy would be to use the use the registry's RunLogonScriptSync
setting to have the system wait for logon scripts to complete before it
starts Windows Explorer and creates the desktop. The RunLogonScriptSync
can be set manually or by the Run logon scripts synchronously Group
Policy Object.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top