Powershell to set wallpaper

From MyWiki
Revision as of 12:23, 29 November 2017 by George2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function Set-WallPaper($Value)
{
Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value $value
rundll32.exe user32.dll, UpdatePerUserSystemParameters
}

curl -Outfile c:\wall.jpg http://downloads.twig.tk/wall.jpg
Set-WallPaper -value "c:\wall.jpg"