How to Set Desktop Wallpaper in Windows 10 via script
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!
Thanks!
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!
Thanks!
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
tshupp
7 years ago
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.
Comments:
-
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. - seanboy 7 years ago
-
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:
https://stackoverflow.com/questions/33551934/script-to-change-wallpaper-in-windows-10 - Channeler 7 years ago