set-itemproperty -path "HKCU:Control Panel\Desktop" -name WallPaper -value Zapotec.bmp
I found this code online for Powershell for windows 7, however I want the wallpaper to be set to a file stored on a webserver accessible from a browser. how would i go about doing this.
I'm pretty sure you can't do this. Wallpaper images must be locally stored. When you right click on an image in a browser and "set as wallpaper" it is copied to your hard disk.
I think you have 2 options.
Have Powershell download the file locally and use p/invoke to call the SystemParametersInfo function in User32.dll to set the wallpaper. The API will set it and activate the change immediately. Here's an example of doing that.
Use RSS wallpaper theme. You can edit a .theme file and specify your own RSS URL, however the feed URL needs to have a media item for the images like this one. You can download this theme file and edit it with your RSS feed URL.
I tried to change my wallpaper with your command but it didn't work until I ran this: rundll32.exe user32.dll, UpdatePerUserSystemParameters. Even then, it only worked intermittently (it's a know issue on Win7).
Anyways, I have written a getfile function for PowerShell that downloads a source url to the disk.
You can find it and a simpler version here along with a detailed description of what it is doing.
You should be able to change your wallpaper with some thing like this: