changing wallpaper with powershell

I want to make a script that changes the wallpaper in windows. I made it so far that i can set the value in the registry but it only takes effect after a reboot. Does anyone know how to script the function you get when you press “set as wallpaper” in windows? what i got so far:

 Set-ItemProperty -path 'HKCU:Control PanelDesktop' -name wallpaper -value $value rundll32.exe user32.dll, UpdatePerUserSystemParameters 1, True 

submitted by /u/TheMixz
[link] [comments]

Leave a Reply