What's wrong with this simple ADM file? Group Policy Administration.

500 Points

CLASS USER
 CATEGORY "MyCustom"
   POLICY "Desktop Icons View Small"
    KEYNAME "Control Panel\Desktop\WindowMetrics"
    VALUENAME "Shell Icon Size"
    VALUEON NUMERIC 32
    VALUEOFF NUMERIC 64
   END POLICY
END CATEGORY

In GPO editing, when I "Add" the above ADM file, it seems to import just fine and error-free, and after a brief auto refresh GPO Editing does nicely display the new Category "MyCustom", BUT that's it, nothing appears under the new category, it's empty, I'm expecting to see "Desktop Icons View Small" in there.

I'm fairly new to ADM writing, but this one really should work.   I'm starting to think there's something with the [space] in the Keyname....    What's wrong with this simple ADM file?



Registry notes:
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
Value Name: Shell Icon Size
Data Type: REG_SZ (String Value)
Value Data: Size in Pixels (Default = 32)

LVL 1
JReamAsked:
Who is Participating?
 
oBdAConnect With a Mentor Commented:
Right-click "Administrative Templates", choose "View > Filtering", and uncheck "Only show policies that can be fully managed".
You're writing outside of the Policies key, so this is not a real policy, it's "tattooing" the registry. Note that if you delete the GPO or set it back to "not configured", the changes will not simply be undone (as they would with a real policy), the last setting applied will be kept just as if you'd applied the registry change with a script or through regedit.
0
 
iimtiazCommented:

Try this PDF to make the templet
http://www.frickelsoft.net/blog/downloads/howto_admTemplates.pdf 
Hope it may help you.
Regards
Iftikhar
0
 
JReamAuthor Commented:
Thanks oBdA, you nailed it perfect.
0
All Courses

From novice to tech pro — start learning today.