Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 796
  • Last Modified:

Controling Desktop Background Images through GP

We have configured GP on server 2003 to prevent anyone from adding a background image to their desktop. However, how do we remove existing backgrounds? There are a lot of users with existing backgrounds.
1 Solution
User Configuration | Desktop | Active Desktop | Active Desktop Wallpaper
Set it to enabled, and use a path\filename that doesn't actually exist.
It will not affect users currently logged in until a logoff/logon however.
Also ignore the fact the name says Active Desktop, it does work for normal wallpaper.
Add the script below to your login script....or save file with vbs extension and run on each PC....logon account must have access to edit registry
Set WshShell = WScript.CreateObject("WScript.Shell")
wallpaper1 = "HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper"
wallpaper2 = "HKEY_USERS\.DEFAULT\Control Panel\Desktop\Wallpaper"
WshShell.RegDelete wallpaper1
WshShell.RegDelete wallpaper2
Set WshShell = Nothing

Open in new window

You will want to find the reg key were it is at, and manipulate it that way.  There is no builtin GP to do that I know of, but you can script it simply enough.
Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

Hello. You can reset it to the background you want (e.g. a corporate logo)

mray77Author Commented:
Kennaniah, your solution did not work for us. Odd though, becuase that is not the first i've read that solution. I'm moving on to test the others. However, i'm going to try the next one's. My only concern with the other ideas thus far is that our users are not admins or power users on their local machine, therefore, i'm going to have to find a way to get them to run the vb srcipt.
Odd yes, as it does work here. Slightly different however since we are using GP on Server 2008, the the setting is in User Configuration | Desktop | Desktop | Desktop Wallpaper

I don't remember having to set Enable Active Desktop to enabled when we were still on XP and 2003, but it's possible like mentioned in Enrique's link.

As for a script, users have full access to the user section of the registry (HKEY_CURRENT_USER). Therefore they don't have to be admins or power users to delete from that section. They just won't have rights to remove the section in HKEY_USERS\.Default, which is only used when creating a new profile.
I you want....you can remove lines 4 and 6 since they only effect new profiles

Featured Post

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now