ADM file enable/disable setting?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created an adm file that sort of works. Below is an example of one of the
policies.
The policy is suppossed to change the "SoundNotification" value to "1" or
"0" in the registry. When I set it up without a CHECKBOX, it doesn't change
the value when I click the "Enabled" or "Disabled" radio buttons. When I do
use the CHECKBOX, it changes the value, but I have to click the "Enabled"
radio button, then also check the box to enable it which will set the
registry setting to "1". as it should.

However, if I click the "Enabled" radio button, and leave the CHECKBOX,
unchecked, it doesn't change the registry setting. Though if I click another
policy and then go back to the previous policy, the radio button setting is
now at "Disabled", and the registry setting still doesn't change.

I've tested by manually changing the registry setting, refreshing the policy
on the one machine the GPO applies to and checking the registry.

How can I set the text from the adm file below to enable or disable (change
from 1 to 0), the policy by clicking only the "Enabled" or "Disabled" radio
buttons? This way the policy will show as enabled or disabled when viewed in
the right pane of the GPO editor.

Thanks for any help or suggestions!
-Steve


POLICY !!POL_DrWatson10

EXPLAIN !!explain_DrWatson10

KEYNAME "SOFTWARE\Microsoft\DrWatson"
PART !!labeltext CHECKBOX

VALUENAME "SoundNotification"
VALUEON NUMERIC 1
VALUEOFF NUMERIC 0

END PART

END POLICY
 
Try taking out the PART section and just having the ValueOn, ValueOff
options. You shouldn't need a PART tag here for something like this.

--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Whitepapers and Utilities for all things Group Policy-related
And, the Windows Group Policy Guide is out from Microsoft Press!!! Check it
out at http://www.microsoft.com/mspress/books/8763.asp
GPOGUY Blog: http://blogs.dirteam.com/blogs/gpoguy
 
Back
Top