How to Set Windows 7’s Login Wallpaper with Group Policies

With Windows XP, you could set your own login background colors and/or wallpaper by modifying the values found in the following registry location: [HKEY_USERS\.DEFAULT\Control Panel\Desktop].
Windows 7 no longer reads this registry key.  Instead you’ve got to complete the multi-step process described in this article.
Login Background for Windows XP
While the steps to set a login wallpaper are not complicated, one challenging limitation is the fact your background wallpaper needs to reside on the workstation’s hard drive.  Interestingly, this is not true for the user’s wallpaper, as there are GPO settings to point to a network location.
So when I had a customer ask me to set their login wallpaper, I had to think of how I wanted to accomplish their request.  We could possibly write a script, and as much “fun” as that might be, I’d rather use something more controlled.  Something that would allow me to easily change the configuration later as well as be decipherable to the customer after I leave.
The answer?  Group Policy – Preferences, that is!
So before we jump in to the Group Policy Management Console (GPMC), let’s identify what we’re trying to do.  If you haven’t already, you may wish to read the above link, otherwise you’re about to be lost.
We want our policy to:
  1. Copy our wallpaper file to the user’s workstation.
  2. Instruct Windows to use our file instead of the default %WinDir%\System32\oobe\background.bmp file.
With the new (ok they aren’t that new anymore) Group Policy Preferences that Windows 7 has built-in, we can copy our wallpaper to the user’s computer, while reserving the right to pull it off if the computer leaves the scope of the GPO.  To copy files, open GPMC and follow these steps:
1. Navigate to: Computer Configuration\Preferences\Windows Settings\Files clip_image001
2. Right-click the “Files” node and select:

New > File
clip_image002
3. Select Replace

4. Type in the UNC path for your source file.
     •In my example I used:
\\Srv1\Share\CompanyLogo.jpg
     •Remember this file needs to be <256K
     •Also understand the permissions on this share need to allow the workstation’s computer account READ. If you leave the usual “Authenticated Users” you’ll be fine.
5. For the Destination File, type this exact text (without the quotes, and no line breaks):
“%windir%\system32\oobe\info\backgrounds\backgrounddefault.jpg
clip_image003
6. Click the “Common” tab

7. Select “Remove this item when it is no longer applied”. This will ensure your file is removed if:
     •The GPO is deleted or disabled
     •The workstation is moved to another OU where the policy is not linked
     •The policy is filtered out
     •You update your policy to send a new wallpaper file
clip_image004
8. Optionally: Select Item-level targeting to specify only Windows 7 computers. This will ensure your file isn’t sent to versions of Windows that wouldn’t make use of it anyway. clip_image005
Now we need to instruct Windows to render this image when the login screen is displayed.  If you read the above article, you’ll remember the OEMBackground registry key.  The good news is, we don’t need that key because there is actually a setting to enable it in GPMC already.
In the same Group Policy Object, navigate to:
Computer Configuration\Policies\Administrative Templates\System\Logon.
Once there, select “Always use custom logon background” and set it to “Enabled”.  This has the same effect of setting the registry manually.
image
Once you’ve completed these steps, close the Group Policy Management Editor and link your policy to an OU – you’re done!
This policy may take two refresh cycles (e.g. reboots) to take effect.  This is because the wallpaper file is not yet present when the “always use custom logon background” setting is first applied.  But once the file has completed copying you’ll see your image at logon.
If you would like to consider multiple screen resolutions, please consult this link.
Before we close, I should point out, this can work for Server 2008 R2 as well.  I have not tested with Vista or Server 2008.
Finally, here are some geeky, but not too over the top wallpapers:  Smile
Login Background for Windows 7

39 thoughts on “How to Set Windows 7’s Login Wallpaper with Group Policies

  1. Now I might be crazy, but I cannot find the “Always use custom logon background” as a part of a GPO I created on my Windows 2008 R2 DC. I have found it on the local GPO on a Windows 7 PC. Is it something I’m missing or should I see that missing policy on my DC?

  2. Check that it was a GPO issue on my network. A fellow admin configured a central store of Policy Definitions and never updated with the R2 admx files. After I did that I had the setting and it is working great.

  3. I have a question about a default theme, i have logged to a laptop -pre domain and i have saved a custom theme file ( screensaver installed, aero colour and taskbar colour etc) yet, when i choose ‘ Force theme’ it doesn’t work,! i have tried to put it in the resources folder, in a shared folder, in a server folder.

    Driving me nuts!

  4. Thanks again Mike.

    I think i know why this isn’t working, I’m using a Server 2008 STD machine, and lots of these rely on the 2008 R2 ADMX files… i can manage them from my win7 enterprise sp1 box.

  5. In Group Policy I first had to create a new folder before “%windir%\system32\oobe\info\backgrounds” before this would work. This is because the folder does not exist by default, and the file creation policy will not create the folder, and thus it will not insert the image file.

  6. Hi Mike, first of all thanks for you help.

    I have a couple of questions:

    1) I see you are copying the new background file from a network server, but I am also doing it and it does not work. The file server is in the same domain and the user has access. Could be this because Computer Configuration applies before the user log on so there is no domain services?

    2) Do you know if your procedure works with x64?

    Thanks & Regards
    Raúl.

  7. Pingback: Windows 7 Login Picture
  8. Any of you experts know how to get the logon background on a remote desktop connection for windows 2008 R2? I’ve been banging my head for days. The logon background is there for local logon. I messed with the Remote Session Environment in gpedit.msc and disabled “enforce removal of remote desktop wallpaper” and enabled “always show desktop on connection” and still, a plain green screen appears. Any suggestions would be GREATLY appreciated. Thanks.

  9. Pingback: 100,000 and Counting… « Mike Crowley's Whiteboard
  10. Pingback: Deploying Desktop Backgrounds - What's the best method?
  11. While this works OK, the amount of time added to the process (before login is even displayed) is just not worth it. To copy 2 files > 500K in total & I have Please wait for almost 2 minutes… Rather copy them with ZCM (Zenworks Configuration Manager)

  12. I cant find the “always use custom logon background” in windows server 2008wSP2 in default domain poilcy. do i have to upgrade to 2008R2wSP1?

  13. Pingback: Windows Logon Background Change
  14. Pingback: Setting logon background
  15. Hey Mike,

    Is there any way to setup a GPO that will allow a wallpaper shuffle? or allow user to pick a wallpaper from approved list? We have four approved wallpapers. I can push out one wallpaper and users can see the other three put gpo is restricting them from picking another. Any help is greatly appreciated.
    Thanks – Jason

    • This post is about the “wallpaper” applied behind the ctrl+alt+del screen. Short of frequently deploying new settings, no, there is no mechanism to rotate the image. If you’re talking about once the user logs in, yes, there is a lot of documentation on building “theme” files and deploying them to your users.

  16. Thank sfor the issue but on some computers, you have to add a registry value

    With GPO, go in computer configuration, then administration templates, the registry and made
    this registry value in this place

    key DWORD 32 bits OEMBackground. get 1 as value. oembackgroundHKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System

    and it will works for all stations.

    Sorry for my english

  17. Pingback: Change lock screen image using Group Policy | DiscVentionsTech
  18. I just found your article while searching for a fairly easy way to standardize the logon screens across our enterprise (many of the HP machines we’ve purchased in the past had HP-themed logon screens while others had the standard Windows 7 one). This was easy to configure and it works like a champ. Thank you for this!

Leave a reply to monu singh Cancel reply