Command to change background colour on Windows 2008 R2 Server
Posted on 2011-10-06
I need to change the background color of my Windows Server 2008 R2 desktop via a text command in a batch file. I done this before on a Windows XP computer using the following command to modify the associated registry key...
reg add "HKCU\Control Panel\Desktop" /v Wallpaper /d "C:\wallpaper\background1.bmp" /f
But this command doesn't work on the Server 2008 R2 O/S. Is there a way make this kind of display change in a text command that can be run from a batch file on Server 2008 R2?
I will also need the remote desktop users connecting to this server to be able to run the command to change their Windows desktop background color.
I know how to change the Windows background color manually through the (Control Panel\Appearance\Display\Desktop Background), but I need to run it in a batch file which is used to switch users to a backup application server.
The backup server is intended for only reading data but there's no way to prevent saving data into it. I want to change the desktop background color from blue to red so it will alert users that they are on the read only server. The blue background will let them know they are on the production server.