Change wallpaper powershell

Question:

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

Answer:

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

or you can use win32 api like this:

Source:

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

Leave a Reply