Scripting Question

How to Set Desktop Wallpaper in Windows 10 via script

09/19/2017 4112 views
Hi all,
We have PCs with Deep Freeze installed that we can thaw and refreeze via Kace scripts. We want to be able to change the desktop wallpaper for everyone in this environment and I am unsure how to do so. I know how to copy the image file to the PC via file synchronization, but I am not sure how to set it as the wallpaper. Any help would be appreciated!
0 Comments   [ + ] Show comments


All Answers

Under Scripts -> Configuration Policies there's a script generator for desktop wallpaper. 

If you want to change the wallpaper regularly, you could try going into the script and editing the variables for the dependency directory to your sync directory. Then set it to run every day or so. The user would need to log out and back in for the change to take effect, but it should work.
Answered 09/19/2017 by: tshupp
2nd Degree Black Belt

  • Thanks! I just tried this and although it was technically successful, the wallpaper did not set. If you go to the Personalize screen, it thinks the wallpaper is the new one I set by the script, but the desktop wallpaper itself is still the old one. It's like it's cached somewhere. If I click on the new wallpaper shown in the personalize window it immediately sets, it's just not done automatically. hmmm.
    • That script works fine for Win7, for Win10 is more difficult, I suggest you do this via GPO policies,

      If not, maybe a power-shell script see:
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ