{"id":1387,"date":"2011-11-07T16:57:58","date_gmt":"2011-11-07T16:57:58","guid":{"rendered":"http:\/\/www.obieta.com\/?p=1387"},"modified":"2011-11-07T16:57:58","modified_gmt":"2011-11-07T16:57:58","slug":"force-background-colour-with-gpo-centred-wallpaper","status":"publish","type":"post","link":"http:\/\/obieta.com\/?p=1387","title":{"rendered":"force background colour with GPO centred wallpaper"},"content":{"rendered":"<p>The background image is an option already\u00a0<code>User-&gt;Policies-&gt;Admin Templates-&gt;Desktop-&gt;Desktop-&gt;Desktop Wallpaper<\/code>.<\/p>\n<p>The desktop color is not however, you&#8217;ll need to create an ADM file an import it. Here&#8217;s the file I use:<\/p>\n<pre><code>CLASS USER\n CATEGORY \"Desktop\"\n  CATEGORY \"Custom\"\n   KEYNAME \"Control PanelColors\"\n   POLICY \"Background color\"\n    EXPLAIN \"Allow you to control the background color of the user's desktop.\"\n    PART \"Enter the RGB values of the user's desktop background (ex: 128 128 128)\" TEXT\n    END PART\n    PART \"Color\" EDITTEXT\n     REQUIRED\n     VALUENAME \"Background\"\n    END PART\n   END POLICY\n  END CATEGORY\n END CATEGORY\n<\/code><\/pre>\n<p>Open notepad, pop that in, save it as something reasonable with the file extension .ADM<\/p>\n<p>Open the GPO, right click Admin Templates, Add, Add&#8230;, Find the file, Close. Find the setting in\u00a0<code>User-&gt;Admin Templates-&gt;Classic Admin Temp(if on Vista or Win7)-&gt;Desktop-&gt;Custom-&gt;Background Color<\/code><\/p>\n<p>Note: Since this GPO is processed after the user logs in, and after Windows sets the background color, the first time the user logs in they will default to whatever the machine&#8217;s default background color is. I&#8217;ve never been motivated enough to write the ADM file to set the default background color, though it should be possible. In any case, the second login and forward the color will be set correctly. This is due to how MS implemented the background color setting in the registry. Also, after this GPO is removed the user will retain the color, it will not revert as with most GPO settings; again it&#8217;s how MS chose to implement the setting&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The background image is an option already\u00a0User-&gt;Policies-&gt;Admin Templates-&gt;Desktop-&gt;Desktop-&gt;Desktop Wallpaper. The desktop color is not however, you&#8217;ll need to create an ADM file an import it. Here&#8217;s the file I use: CLASS USER CATEGORY &#8220;Desktop&#8221; CATEGORY &#8220;Custom&#8221; KEYNAME &#8220;Control PanelColors&#8221; POLICY &#8220;Background color&#8221; EXPLAIN &#8220;Allow you to control the background color of the user&#8217;s desktop.&#8221; PART [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,1],"tags":[],"_links":{"self":[{"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts\/1387"}],"collection":[{"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1387"}],"version-history":[{"count":0,"href":"http:\/\/obieta.com\/index.php?rest_route=\/wp\/v2\/posts\/1387\/revisions"}],"wp:attachment":[{"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1387"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/obieta.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}