Created
May 24, 2019 12:01
-
-
Save simon04/58ce023ba3ce7834d46ee6d94b659d67 to your computer and use it in GitHub Desktop.
Change Windows desktop background to random color
This file contains hidden or 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
$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