PC Review


Reply
Thread Tools Rate Thread

Custom ADM policy not being applied

 
 
John Price
Guest
Posts: n/a
 
      2nd Jul 2004
Hello all

I have been trying to write a custom ADM file to apply settings using GPO.
The settings set to go to the USER section (HKCU) appear fine in the
registry. None of my settings for the machine (HKLM) appear in the registry.


Here is my test adm settings

CLASS MACHINE
CATEGORY !!MyProd
KEYNAME !!MyKey
POLICY "Home Directory"
EXPLAIN "The user's home directory for this application."
PART "Directory Name" EditText
VALUENAME Name
MaxLen 255
END PART
PART "A Valueto see if it shows up" EditText
VALUENAME ZZZNAME
Maxlen 255
END PART
END POLICY
END CATEGORY

CLASS USER
CATEGORY !!MyProd
KEYNAME !!MyKey
POLICY "Home Directory"
EXPLAIN "The user's home directory for this application."
PART "Directory Name" EditText
VALUENAME Name
MaxLen 255
END PART
PART "A Valueto see if it shows up" EditText
VALUENAME ZZZNAME
Maxlen 255
END PART
END POLICY
END CATEGORY

[strings]
MyKey="software\MyCompany\MyProduct\7.5
MyProd="MyProduct"


Any ideas

Thanks in advance
John Price

mailto: (E-Mail Removed)


 
Reply With Quote
 
 
 
 
Oli Restorick [MVP]
Guest
Posts: n/a
 
      2nd Jul 2004
You can't place the registry key in a string. You have to quote it
literally.

CLASS MACHINE
CATEGORY !!MyProd
KEYNAME software\MyCompany\MyProduct\7.5

Hope this helps

Oli



"John Price" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello all
>
> I have been trying to write a custom ADM file to apply settings using GPO.
> The settings set to go to the USER section (HKCU) appear fine in the
> registry. None of my settings for the machine (HKLM) appear in the
> registry.
>
>
> Here is my test adm settings
>
> CLASS MACHINE
> CATEGORY !!MyProd
> KEYNAME !!MyKey
> POLICY "Home Directory"
> EXPLAIN "The user's home directory for this application."
> PART "Directory Name" EditText
> VALUENAME Name
> MaxLen 255
> END PART
> PART "A Valueto see if it shows up" EditText
> VALUENAME ZZZNAME
> Maxlen 255
> END PART
> END POLICY
> END CATEGORY
>
> CLASS USER
> CATEGORY !!MyProd
> KEYNAME !!MyKey
> POLICY "Home Directory"
> EXPLAIN "The user's home directory for this application."
> PART "Directory Name" EditText
> VALUENAME Name
> MaxLen 255
> END PART
> PART "A Valueto see if it shows up" EditText
> VALUENAME ZZZNAME
> Maxlen 255
> END PART
> END POLICY
> END CATEGORY
>
> [strings]
> MyKey="software\MyCompany\MyProduct\7.5
> MyProd="MyProduct"
>
>
> Any ideas
>
> Thanks in advance
> John Price
>
> mailto: (E-Mail Removed)
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Group Policy - Computer Policy - When does this get applied? =?Utf-8?B?TWljaGVsbGU=?= Microsoft Windows 2000 Security 1 9th Aug 2006 09:23 AM
Security templates applied locally vs applied through group policy =?Utf-8?B?U2ltb24=?= Microsoft Windows 2000 Group Policy 1 25th Mar 2005 04:36 PM
Group policy: Computer policy not applied to OU in domain Event ID 1000 Userenv msiInstaller Damien Microsoft Windows 2000 Group Policy 3 17th May 2004 11:16 PM
OU Policy not applied xxx Microsoft Windows 2000 Group Policy 2 10th Apr 2004 07:51 PM
Event ID: 1704 Security policy in the Group policy objects are applied successfully. Isabella Microsoft Windows 2000 Security 0 11th Jul 2003 05:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:57 AM.