+ Post New Thread
Results 1 to 14 of 14
Windows Thread, ADM Templates help in Technical; I'm trying to create an ADM template which alters this key: HKCU: Software\Microsoft\Windows\CurrentVersion\Policies \ActiveDesktop Keyname: NoChangingWallpaper (which has a value ...
  1. #1
    Crispin's Avatar
    Join Date
    Dec 2008
    Location
    Essex
    Posts
    361
    Thank Post
    76
    Thanked 28 Times in 25 Posts
    Rep Power
    20

    ADM Templates help

    I'm trying to create an ADM template which alters this key:

    HKCU: Software\Microsoft\Windows\CurrentVersion\Policies \ActiveDesktop
    Keyname: NoChangingWallpaper (which has a value of either 0 or 1)

    So far, I've kinda muddled through a few ADM tutorials and come up with this:


    CLASS USER
    CATEGORY "Desktop"
    POLICY "Disable Set as Desktop Background in IE"
    KEYNAME "Software\Microsoft\Windows\CurrentVersion\Policie s\ActiveDesktop"
    EXPLAIN "Disables the Set as Background option in IE Contextual Menu"
    VALUENAME "NoChangingWallpaper"
    VALUEON NUMERIC 0
    VALUEOFF NUMERIC 1
    END POLICY
    END CATEGORY
    But when I try to create a .POL in the system policy editor, it says there are errors. So i'm going badly wrong somewhere.
    Anyone able to see where?

  2. #2


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,706
    Thank Post
    220
    Thanked 2,615 Times in 1,926 Posts
    Rep Power
    777
    According to Microsoft's Group Policy Settings Reference spreadsheet for Windows Server 2003, there's already a 'NoChangingWallPaper' policy. It's located in System.adm under User Configuration, Administrative Templates\Control Panel\Display. I imagine it's in the same loation for Windows XP/Vista/7/Server 2008 too.

    Not sure why yours is not working, but perhaps that would be why?

  3. Thanks to Arthur from:

    Crispin (5th August 2009)

  4. #3

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,986
    Thank Post
    850
    Thanked 2,653 Times in 2,253 Posts
    Blog Entries
    9
    Rep Power
    764
    There is a PDF here which goes into the creation of ADMs quite well
    Guide to Creating Custom ADM Files for GPO Distribution

    Here is one which may be helpful as a template even though your one does look right
    Add favourites to the start menu

    I am not quite sure that I understand your method though, the ADM file would be saved into the windows\inf directory of the machine that you are managing GP through and then added to the specifig GPO in the Group Policy editor. It should only propmpt you with errors when it is loading into the GP editor. It builds the .pol file when you actually change a setting on one of the avalible policy settings.

    Edit: and Yea, as Authur has pointed out above that setting is already avalible in the builtin policies so I would just use that one. I really should have read the actual purpose of the key first so that I saw the duplication
    Last edited by SYNACK; 5th August 2009 at 04:29 PM.

  5. Thanks to SYNACK from:

    Crispin (5th August 2009)

  6. #4
    Crispin's Avatar
    Join Date
    Dec 2008
    Location
    Essex
    Posts
    361
    Thank Post
    76
    Thanked 28 Times in 25 Posts
    Rep Power
    20
    You see this is the problem I'm having,

    We've disabled active desktop for many reasons, and we need to disable the 'set as desktop background' contextual option.
    If I apply the already existing policy in, "User configuration\admin templates\desktop\prohibit changes etc... it doesn't grey out the option.

    If however, I manually change the registry entry for 'nochangingwallpaper' it immediately greys out the option.

    Its an odd one, one that I hoped to resolve by just adding it to group policy, but like you say if its a duplicate it can't be done.

    I may just have to make a logon script to do it, that's probably a lot easier.

  7. #5

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    144
    Quote Originally Posted by Crispin View Post
    You see this is the problem I'm having,

    We've disabled active desktop for many reasons, and we need to disable the 'set as desktop background' contextual option.
    If I apply the already existing policy in, "User configuration\admin templates\desktop\prohibit changes etc... it doesn't grey out the option.

    If however, I manually change the registry entry for 'nochangingwallpaper' it immediately greys out the option.

    Its an odd one, one that I hoped to resolve by just adding it to group policy, but like you say if its a duplicate it can't be done.

    I may just have to make a logon script to do it, that's probably a lot easier.
    It doesn't grey out the option, but I believe if you click it, it comes up with a message saying this has been prevented due to restrictions in effect on this machine, or words to that effect.

    I've always used VBS scripts to change registry keys that aren't in Group Policy, as I've never had any luck at all at creating a custom ADM file for Group policy management. Doing this change as part of a logon script is very easy, I'll post up the code if you want it.

    Also if it's for your students and you run a mandatory profile, you could change this key in your mandatory profile instead of using a Group Policy.

    Mike.

  8. Thanks to maniac from:

    Crispin (5th August 2009)

  9. #6
    Crispin's Avatar
    Join Date
    Dec 2008
    Location
    Essex
    Posts
    361
    Thank Post
    76
    Thanked 28 Times in 25 Posts
    Rep Power
    20
    Actually I'm pretty sure it does grey it out, i tested it a few days ago. Couldn't click it at all...

    But if you would be so kind as to post that code I'd be very greatful. I'm really not a coder...still on batch files mainly.

  10. #7

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,241
    Thank Post
    239
    Thanked 1,564 Times in 1,248 Posts
    Rep Power
    339
    If you install IE7 or IE8 Active Desktop no longer works. It looks as though it's something that Microsoft want to remove as it doesn't exist in Windows Vista and most probably Windows 7. Using BGInfo is an easy to use tool to set/control user desktop wallpapers. It can also display useful system information such as the Computer Name and IP etc...

  11. #8


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,706
    Thank Post
    220
    Thanked 2,615 Times in 1,926 Posts
    Rep Power
    777
    Michael's correct about Active Desktop. It doesn't exist in Windows 7 (a good thing IMO).

    Should you still need it, here's a VBScript that will modify that registry key.

    Code:
    Set WshShell = WScript.CreateObject("WScript.Shell")
    
    WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoChangingWallpaper", 1, "REG_DWORD"

  12. Thanks to Arthur from:

    Crispin (5th August 2009)

  13. #9

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    144
    Just knocked this up for you and tested it on my home machine, it appears to do what you need it to.

    Code:
    Const HKCU=&H80000001
    Set oReg=GetObject("winmgmts:!root/default:StdRegProv")
    oReg.CreateKey HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop"
    oReg.SetDWORDValue HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop","NoChangingWallpaper",1
    Save it as anything.VBS and add it as a logon script and it will change that registry key at logon. Please test it first, it is offered with no warranty or guarantee.

    Mike

    EDIT: Classic, two different ways of achieving the same thing Arthur!
    Last edited by maniac; 5th August 2009 at 05:49 PM.

  14. Thanks to maniac from:

    Crispin (5th August 2009)

  15. #10
    Crispin's Avatar
    Join Date
    Dec 2008
    Location
    Essex
    Posts
    361
    Thank Post
    76
    Thanked 28 Times in 25 Posts
    Rep Power
    20
    Thanks guys, that helps me out a lot. I'll try it out in the morning.

  16. #11
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    422
    Thank Post
    67
    Thanked 89 Times in 74 Posts
    Rep Power
    61
    this guy Yizhar Hurwitz page

    has a package called NUTS and it contains a little prog called reg2adm /

    which may help

    BoX

  17. 3 Thanks to box_l:

    Crispin (6th August 2009), SYNACK (6th August 2009), ZeroHour (6th August 2009)

  18. #12

    Join Date
    Aug 2009
    Location
    alex2009
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Can you give some more info? it not easy for me to understand however It's really useful for me in some ways. Thanks.

    comparatif simulation taux pret auto - taux pret auto differe selon la prise en compte ... calculent automatiquement le taux pour un prÍt automobile donne.comparatif simulation taux pret auto

  19. #13
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    422
    Thank Post
    67
    Thanked 89 Times in 74 Posts
    Rep Power
    61
    1. Edit the relevant registry key
    2. Export the reg key to somewhere. (desktop)
    3. Open reg2adm
    4. Open reg key with reg2adm
    5. Save the adm file
    6. Move the adm to windows\system32\inf
    7. Open GPMC and import the ADM to the appropriate GPO.
    8. Deploy to test machine

    BoX

  20. #14

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,630
    Thank Post
    890
    Thanked 1,314 Times in 798 Posts
    Blog Entries
    1
    Rep Power
    441
    tbh if you need to deploy reg keys just install the windows update "group policy preferences" on your clients and then you can just use the preferences section of GP (using vista/7/2008 GPMC) and put keys simply in there. I have been using GPP for ages now for power saving etc and it rocks.

SHARE:
+ Post New Thread

Similar Threads

  1. ClickView Player ADM and ADMX templates
    By SYNACK in forum AV and Multimedia Related
    Replies: 1
    Last Post: 15th April 2009, 11:29 AM
  2. ADM for WLANs
    By contink in forum Windows
    Replies: 2
    Last Post: 5th December 2008, 05:24 PM
  3. Replies: 5
    Last Post: 13th December 2007, 09:09 PM
  4. Firefox MSI, AD install and ADM templates
    By ajbritton in forum Windows
    Replies: 6
    Last Post: 15th September 2006, 03:44 PM
  5. Microsft ADM Templates
    By Dos_Box in forum Downloads
    Replies: 0
    Last Post: 15th July 2005, 01:49 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •