Change wallpaper powershell


Hello i’m trying to make a little script to change my wallpaper every given time
i have a folder in which the pictures are name 1.bmp , 2.bmp etc

i made this script but it doesn’t work at all

can someone explain why please 🙁

PS : the start-sleep values are totally random and here for testing


This should fix the problem(checked in win 10):

or you can use win32 api like this:


Change wallpaper powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply