1

I have a lab with Windows 10 laptops. I need to change the desktop wallpaper on the machines. I dont want to do this manually. There are like 1000 machines. I want to do it programatically.

I tried going to HKCU\Control Panel\Desktop\Wallpaper and changing the path. I also tried going to C:\Windows\Web\Wallpaper\Windows and changing the jpg. But that still does not change the wallpaper. Is there a different way to do this ?

Prashant
  • 157

1 Answers1

1

After updating the Registry, call:

RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters,2,True

from the command line to force an immediate update. On the forum where I found this answer they describe this method as undocumented and not recommended. However it has been tested and works currently. You could further automate this by putting it all into a batch file.

DavidPostill
  • 162,382