Wallpaper in Windows 7 locked down by domain group policy?

145,686

Solution 1

I was able to get around by going to this location in the registry:

HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System

Inside, there's a key called Wallpaper. I deleted it and re-set the desktop background, and it worked.

You'll have to do that every time you log on though, as group policy refreshes itself. (It can also be set to refresh automatically.)

Solution 2

Even if there were a hack, GPO is rechecked and reset regularly and each time you log in.

I assume this policy was probably created as an over-reaction to potentially offensive desktop background images.

Petitioning your IT org to change this setting and simply rely on people making the right choice or getting talked to by their managers may be a more effective solution.

Solution 3

Easy...just do a search for the name of the wallpaper. Once you find the location that has the filename (i.e. wallpaper.jpg), simply rename that file to wallpaper-Old.jpg (or something like that). Next place either the image, or a link to an image, that you want to use in that location with the name wallpaper.jpg ( or whatever the original file's name was). This is just continuing with what W. Jackson was hinting at...

That said, do you know the location of the file that is used for the desktop background? Can you take the wallpaper you want and save it in that location? – William Jackson

This is just a workaround that does not require hacking the registry or any of the sysadmins' settings from A/D or the local machine.

Solution 4

A slight variation to Ryan's answer above is to load regedit and to navigate to the same key:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies

Under this key there may be a key:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop

If there is a string called "NoChangingWallPaper" set it to = "0"

Under the key:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

If there are strings "Wallpaper" and "WallpaperStyle" then delete these two strings.

Close regedit and then go into the "Personalize" settings and you should be able to change the wallpaper to one of your choosing.

If this still doesn't work you may need to log out of Windows and log back in.

The above was tested successfully on Windows 10.

I also find that the Group Policy synchronisation is usually less frequent than daily (but I guess each environment could differ here). Logging onto your PC before connecting to the network can help reduce the frequency of the Group Policy re-sync as well. If you have a laptop and it supports hibernation this can also decrease the frequency of Group Policy re-sync. I can usually go at least a couple of weeks to a month without the group policy wallpaper being re-applied and this is without implementing any automation scripts on startup.

Solution 5

Here is a workaround if you are the local admin on your machine:

...and if you can find the image that the policy is using to set your wallpaper (in my case it was in C:\Windows\Web\wallpaper\backround.jpeg) you can change it's security permissions to deny all.

Next time you log in, the policy will not be able to overwrite the image or set it as wallpaper and hence it will default to a solid colour background. In my case I am still not able to choose a new image for the background because group policy disabled that option; I am however able to choose the Windows 7 default theme which set the background to default black.

I only wanted a black background in my case so I did not try to tinker around with the various read/write/modify permissions on the image itself. However, theoretically, you may be able to make your own image, name it the same as the default group policy background image, replace the default image with the new, change permissions on all groups, users to read only. This way the policy should fail to overwrite the image but succeed to set it as the default background. I have not tried this last bit.

This is the only solution I know off that is not temporary. All other solutions, including those that change the registry settings, will be overwritten by the policy every time you log in.

I tried using DisplayFusion and it does work but the change is temporary to the current session; DisplayFusion software will change the wallpaper to any of your chosing but every time you log out and back in and policy is re-applied, you will have to open DisplayFusion and hit OK to update the wallpaper.

Share:
145,686

Related videos on Youtube

void.pointer
Author by

void.pointer

Updated on September 18, 2022

Comments

  • void.pointer
    void.pointer over 1 year

    I am in a situation where my wallpaper is locked to a specific image on my work computer via group policy. I can't change it via the Personalization settings since it is grayed out and says it has been set by the system administrator.

    Anyone know some local GPO and/or registry hackery I can do to override the domain's policy? I could probably get away with logging in under a local account for this, but I want that to be a last resort.

    • William Jackson
      William Jackson almost 13 years
      They call it "policy" for a reason. Even if you knew what registry value to change, the policy would be reapplied the next time your computer processed policy.
    • Joe Taylor
      Joe Taylor almost 13 years
      Any changes you make to your local GPO will be over riden by the domain GPO.
    • William Jackson
      William Jackson almost 13 years
      That said, do you know the location of the file that is used for the desktop background? Can you take the wallpaper you want and save it in that location?
    • beakersoft
      beakersoft almost 13 years
      As @William said, its there for a reason. Even if you do mange to get into the reg and change the key, policies tend to update every half hour or so, so this will just revert it back
  • void.pointer
    void.pointer almost 13 years
    Great points but this is more or less an issue because system admins like to play jokes (like setting people's wallpaper to hello kitty). I'll simply just use a local account :)
  • Ravindra Bawane
    Ravindra Bawane almost 13 years
    Ahh, those mischievous sysadmins. They are so very clever. Can't say I've never done that, but it could result in an anonymous complaint to a corporate anti-bullying line...
  • f1assistance
    f1assistance almost 11 years
    TNO! This thread is a perfect example showing why users are the greatest security risk to protected resources and end up costing business billions a year...the admin's job continues to go unappreciated!
  • Nick
    Nick over 9 years
    Yeah, changing a jpg is a huge security risk. If even 1 user replaces a simple jpg the entire domain is under attack and at risk of causing mass destruction on a level you've never seen before.
  • void.pointer
    void.pointer almost 9 years
    I wonder if you could change the permissions on the key itself to your account being the only one with write permissions. I know this works for disabling UAC when enforced by GPO.
  • digitguy
    digitguy over 8 years
    This helped me. I had to delete both Wallpaper and Wallpaper Style keys to reset the desktop background. Thanks.
  • Pierre.Vriens
    Pierre.Vriens almost 8 years
    Why the "(IE)" in your answer? What if you don't use that browser?
  • DavidPostill
    DavidPostill over 7 years
    This doesn't work. The policy is re-applied on the next reboot.
  • ensignr
    ensignr about 7 years
    Create a .reg file that removes the Wallpaper key. In your Start Menu's Startup folder create a shortcut to regedit that uses the /s swtich to merge the .reg file into the registry. Viola. Pesky reg key removed each time on login. So far this seems to be working for me. YMMV as my login does have admin rights to this pc.
  • Thorsten Schöning
    Thorsten Schöning almost 7 years
    @Nick Yes, that's entirely possible if the user provides a malicious image with an embedded exploit for some 0-day in Windows, we saw many of those in the last years, and the payload is some stuff like WannaCry, which you could read about in the media in the last month. But as a security pro, you of course did know all that...
  • Ravindra Bawane
    Ravindra Bawane almost 7 years
    Note: at most places of employment this would be considered a violation of work place policies, and could be a terminating offense.
  • Nick
    Nick almost 7 years
    Why are you replying to 3 year old comments?
  • Joel Mueller
    Joel Mueller almost 7 years
    @music2myear Anyone who would fire you because you don't want to look at a (just to pick a random example) blinding white desktop background every day of your life wouldn't be worth working for in the first place. There's no excuse for that crap.
  • Ravindra Bawane
    Ravindra Bawane almost 7 years
    As an IT professional who has had to deal with security issues caused by uncautious use of questionable wallpaper sites and sources as well as the labor and time required to answer questions not related to workplace productivity from users unable to perform these actions themselves, I disagree with you in part. As a person who likes my desktop backgrounds, I agree with you in part. There's plenty of excuse for "that crap" as you put it, and a company is allowed to make that decision. There are creative solutions that meet all needs that do not involve breaking workplace rules.
  • user2818782
    user2818782 over 6 years
    Where does it mention placing a registry file in the Startup directory?
  • void.pointer
    void.pointer over 6 years
    To me, the best solution to both music2myear and Joel concerns is to force a black background for all workstations and block wallpaper websites. Then no one complains and focuses on work instead, like they should.
  • Naucle
    Naucle almost 6 years
    I couldn't delete the reg key, but this worked for some reason. If the wallpaper keeps getting changed back after reboots, just save the image you want to use as a wallpaper somewhere in your computer, then open the image file in the browser and save it as a bookmark. Now every time you want to change your wallpaper, open the bookmark and set it as a wallpaper.