Link to home
Start Free TrialLog in
Avatar of pscharf
pscharf

asked on

Issues setting wallpaper with group policy

I have a Server 2003 domain and I'm trying to set a group policy to force a wallpaper.  I have a GPO and I assigned it to the OU's I want it to be enforced on.  It is a .bmp located in a UNC path.  The wallpaper will not always show up for the users it is supposed to.  It always show up in the preview window if you right click the desktop > properites and the policy shows as applied in rsop.msc.  I've tried every combination of active desktop on/off, only allowing bitmaps, etc and I just can't seem to get this to apply consistently.  The bmp is 4mb and I'm thinking that might be some of the issue.
Avatar of Speshalyst
Speshalyst
Flag of India image

can you try with a different pic file ? just to check if the cause of the problem is this specific .bmp
 
Avatar of pscharf
pscharf

ASKER

I've been able to get it to apply, but only under the following circumstances:

Enable Active Desktop - Enabled
Disable Active Desktop - Disabled
Active Desktop Wallpaper - \\server\share\file.bmp

From my understanding I shouldn't need to use Active Desktop for a bmp.  Also with active desktop on icon text is not transparent.
ASKER CERTIFIED SOLUTION
Avatar of PeteJThomas
PeteJThomas
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To elaborate on the first line in the txt file, the command we use is in the following syntax:

\\<FULL domain name>\SYSVOL\<FULL domain name>\Policies\<policy folder>\User\Scripts\Logon\robocopy (the 'logon' folder contains an executable called robocopy, a free copy utility)

At this point there's a space, so continuing on:

...\robocopy \\<FULL domain name>\SYSVOL\<FULL domain name>\Policies\<policy folder>\User\Scripts\Logon\Background (there is a folder called 'Background' in the same place as the robocopy executable, and this folder simply contains the image file itself)

Another space, so:

...\Background "%userprofile%\local settings" /r:1 /w:1 /np /xf thumbs.db

The switches at the end are robocopy switches, (robocopy has an extensive list of switches) defined as follows:

/r:1 = number of retries on failed copies set to 1
/w:1 = seconds to wait between retries set to 1
/np = no progress (do not show % copied during copy)
and /xf thumbs.db = exclude file thumbs.db in the copy

I know that might look complicated but it's actually extremely simple and effective...
Avatar of pscharf

ASKER

Thanks for the script Pete.  I'm trying to avoid doing that because it seems to me that group policy should be able to handle this.  I've already pushed the bitmap to peoples local directories in preparation for not being able to fix GP.

So just to clarify there is no way to have a bitmap with active desktop disabled through group policy?
I've personally never seen it done without or script or with active desktop - Not saying it can't be done though, just that it's always been done with scripts in the companies I've worked for. Apparently they only 'true' way to lock it down so people can't change it is to use active desktop, but I'd rather settle for letting them be able to change it if they can figure out how... (and the script changes it back again at next log on anyway).

So I've been looking and found this - "In gpedit, the "Active Desktop Wallpaper" setting in User Configuration|Administrative Templates|Desktop|Active Desktop does set the background. Ignore the fact that it's in the Active Desktop section, as it still works with Active Desktop disabled. Active Desktop only needs to be enabled if using JPG or HTML for the background." (from https://www.experts-exchange.com/questions/21392666/Group-Policy-Desktop-Wallpaper-Active-Desktop.html)

Not sure if that's meant to be .bmp instead of .jpg though? As it would seem to suggest that you should be able to do it the way you want with a bmp?

Did you try using a smaller image by the way?
Avatar of pscharf

ASKER

I have tried with a smaller image.  The background will NOT show up unless active desktop is enabled, which for some god forsaken reason when done via GP also adds the funny background text to an icon.  Thank you very much for your help.
Sorry that didn't help much - If you still wanna keep trying, I would probably convert the image into various formats, and try each one. By the sounds of it you only need active desktop enabled if you're using certain image types, so maybe it's just a case of finding the right image type.

Either way, thanks for the points, and of course if you choose to use the script, any questions just ask.

Good luck,

Pete
Hi Pscharf,

As per ur reply...

  • pscharf:
  • I've been able to get it to apply, but only under the following circumstances:
  • Enable Active Desktop - Enabled
  • Disable Active Desktop - Disabled
  • Active Desktop Wallpaper - \\server\share\file.bmp
  • From my understanding I shouldn't need to use Active Desktop for a bmp.  Also with active desktop on icon text is not transparent.
Ill suggest here to change the GP settings for Disable Active Desktop.... It must be ENABLED which will certainly allow you to set .bmp file as background....

Hope this will help you with out any scripts...
Hi Pscharf,

As per ur reply...

  • pscharf:
  • I've been able to get it to apply, but only under the following circumstances:
  • Enable Active Desktop - Enabled
  • Disable Active Desktop - Disabled
  • Active Desktop Wallpaper - \\server\share\file.bmp
  • From my understanding I shouldn't need to use Active Desktop for a bmp.  Also with active desktop on icon text is not transparent.
Ill suggest here to change the GP settings for Disable Active Desktop.... It must be ENABLED which will certainly allow you to set .bmp file as background....

Hope this will help you with out any scripts...