Oct
08
2008

Custom Group Policy(GPO) for Changing Desktop Background Colour

Custom Group Policy(GPO) for Changing Desktop Background Colour

As per requirement, we need to change all client windows (XP, and 2003) desktop BG color, but it’s impossible to change BG colour manually over 1000 desktop. So, we have to do it with an automatic process.

First we have to find out what happened on registry, while we changing Desktop BG color, and to do so, we need a tools which take a Windows Registry Snap after and before changing desktop BG color,

RegShot is the best free tools for that,


Download:

  RegShot (89.2 KiB, 262 hits)

So, finally we able to trace out that registry change,

1
2
[HKEY_CURRENT_USER\Control Panel\Colors]
"Background"="26 26 26"

Initially we add an extra line on logon script, to change desktop BG color to black,

1
REG ADD "HKCU\Control Panel\Colors" /v Background /t REG_SZ /d "0 0 0" /f

It works fine on all Windows XP Machine, but not with few Windows 2000 computer, in that case we are searching for some alternative solution,
Now we decided to create a ADM file for custom group policy,  to force BG color change via GPO.

And here we are, with the following adm file we can change BG color to Black, White, Red, Brown, Yellow, Green, Sky, Brown, Blue, Dark Blue, Pink, Grey… :P

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
CLASS USER
	CATEGORY !!categoryname
		KEYNAME "Control Panel\Colors"
		POLICY !!policyname
	EXPLAIN !!explaintext
	PART !!labeltext DROPDOWNLIST REQUIRED
	VALUENAME "Background"
	ITEMLIST
	NAME "Normal" VALUE "0 128 128"
	NAME "Black" VALUE "0 0 0"
	NAME "White" VALUE "255 255 255"
	NAME "Red" VALUE "255 0 0"
	NAME "Brown" VALUE "128 0 0"
	NAME "Yellow" VALUE "255 255 0"
	NAME "Green" VALUE "0 128 0"
	NAME "Sky" VALUE "0 255 255"
	NAME "Brown" VALUE "0 0 255"
	NAME "Blue" VALUE "0 0 255"
	NAME "Dark Blue" VALUE "0 0 128"
	NAME "Pink" VALUE "255 0 255"
	NAME "Grey" VALUE "160 160 164"
	END ITEMLIST
END PART
END POLICY
END CATEGORY
[strings]
categoryname="Desktop BG Colour Changer"
policyname="Change the background color of the client computer via Group Policy"
explaintext="This policy sets the background color of the client computer. Custom Group Policy - http://technochat.in! By Saugata Datta."
labeltext="Select Colour"

A very good guide on Writing Custom ADM Files for System Policy Editor

If you want to do same, just download above desktopbgcolor.adm file.
Open GP management console and add custom template from Add/Remove Templates…

Click Add to select ADM file,

Now goto View>Filtering and remove last tick.

Now you can modify Policy settings.

Enable policy if you want…

All done…
Thanks.

If you Liked It, then Share It!!
  • Google Bookmarks
  • LinkedIn
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • Ping.fm
  • MySpace
  • Live
  • Yahoo! Bookmarks
  • MSN Reporter
  • Print
Written by Saugata (2,639 views) in: Group Policy | Tags: , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 4.83 out of 5)
Loading ... Loading ...

7 Responses to “Custom Group Policy(GPO) for Changing Desktop Background Colour”

  1. Williams Says:

    Thanks for the info, thanks for saving my a$$ once again..
    :)

  2. Saugata Says:

    You Welcome.. :P

  3. Robin Says:

    Thanks, Saugata, great resource and did exactly what I needed.

  4. Dan Says:

    Hello I try all of the steps and for some reason the policy is not been apply. I have enable the policy log of the user and log in back and nothing happens. The user is still eble to change the background color. Can any body help me with this..

  5. Saugata Says:

    after applying policy, on user desktop did u use
    gpupdate /fore for forcing the policy..

    Let me know..

  6. arrio Says:

    Don’t work :(

  7. Saugata Says:

    It should be work.. try gpupdate /fore, after applying the policy on client.

    100% working on all system..

Leave a Reply

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes