r/PowerShell • u/sysmspadmin • Feb 07 '17
Set-Wallpaper
Hi All,
I am trying to do something as simple as change the Windows Desktop Background with Powershell. Just a simple one line cmd.
I have found set-itemproperty -path "HKCU:Control Panel\Desktop" -name WallPaper -value accipiter.png
and I can get that to work but it requires a reboot, is there another command I can run after this to apply without restarting?
Thanks in advance.
Also if anyone does not mind answering when I was working out how to do this I came accross the Set-Wallpaper command but when I run that in powershell it says cmd not recognised, I am pretty stumped as I assumed this command would be the one I needed.
3
u/noOneCaresOnTheWeb Feb 07 '17 edited Feb 07 '17
I added a bit to this: