Controling Desktop Background Images through GP

Posted on 2009-12-22
Last Modified: 2013-12-04
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.
Question by:mray77
    LVL 24

    Expert Comment

    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.
    LVL 14

    Accepted Solution

    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

    LVL 11

    Expert Comment

    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.
    LVL 11

    Expert Comment

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

    Author Comment

    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.
    LVL 24

    Expert Comment

    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.
    LVL 14

    Expert Comment

    I you can remove lines 4 and 6 since they only effect new profiles

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Recently, I read that Microsoft has analysed statistics for their security intelligence report. It revealed: still, the clear majority of windows users do their daily work as administrator. An administrative account is a burden, security-wise. My ar…
    As a Mac user and former AppleCare AHA & Senior Advisor, I'm constantly bombarded with questions about Macs and if they need Antivirus. This short article is my response to those questions.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now