Skip to content

Instantly share code, notes, and snippets.

@simon04
Created May 24, 2019 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simon04/58ce023ba3ce7834d46ee6d94b659d67 to your computer and use it in GitHub Desktop.
Save simon04/58ce023ba3ce7834d46ee6d94b659d67 to your computer and use it in GitHub Desktop.
Change Windows desktop background to random color
$r = (Get-Random -Maximum 255)
$g = (Get-Random -Maximum 255)
$b = (Get-Random -Maximum 255)
Set-ItemProperty "HKCU:\Control Panel\Colors" -Name Background -Value "$r $g $b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment