7

Is there a command line option to change the Windows desktop background color?

I want to set my desktop background to use Solid Colors (blue - rgb: 57, 109, 166) with no background image. The only reading I find is about how to change the desktop wallpaper image.

3 Answers3

7

The background is stored in the registry. There are a few different ways to set it. But there several ways to set a registry value via the command line.

To set the background to a specific color you need to unset any wallpaers, and set the color.

HKEY_CURRENT_USER\Control Panel\Colors\Background = 'r g b'
HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper = ''
Zoredache
  • 20,438
4

If you want to make it Automatic, such as with a login script or a batch file, you may use the following:

ECHO Clearing Background ...
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f
reg add "HKEY_CURRENT_USER\Control Panel\Colors" /v Background /t REG_SZ /d "0 0 0" /f
0

I do not think this is an option, but you can easily change the background color by right clicking the desktop, choosing "Personalization", choosing "Desktop Background", and choosing "solid colors". Alternatively, you can make a 1px x 1px image of the color you want, and set as a tiled background image.