Created
November 24, 2010 17:20
-
-
Save s7ephen/714023 to your computer and use it in GitHub Desktop.
How to change the desktop wallpaper from powershell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-itemproperty -path "HKCU:Control Panel\Desktop" -name WallPaper -value accipiter.png |
Is there a way to get these awesome scripts to work for an entire DIR, instead of single file?
Cheers
$setwallpapersrc = @"
...
Thank you very much, perfectly working with powershell, amazing :o
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@gabrielkryss You can put BirkhoffLee's post above in a ps1 file like so:
And call it like so:
Or you could keep your wallpaper at a specific location (e.g., $env:LOCALAPPDATA\wallpaper.png) and have your script simply set that path as the wallpaper.