[gptalk] Re: Problem implementing a registry setting in ADM

  • From: "Victor W." <victor-w@xxxxxxxxx>
  • To: gptalk@xxxxxxxxxxxxx
  • Date: Wed, 25 Oct 2006 21:43:29 +0200

Hi,
 
I have decided to implement it with the drop down list afterall. 
This is because this way there is probably less confusion when somebody
selects "enable".
He then has two choices Yes and No, I know this is confusing but probably
less confusing then with the checkbox.
 
But it got me thinking about the whole matter and that was a good thing.
 
I would like to go through the ADM file to be sure I am correct in my
assumption:
 
What I would like the following to mean in the GPO is:
 
'Not Configured'     - the registry setting must not be there
'Enabled'               - the registry setting must be there with a value of
1
'Disabled'              - the registry setting must not be there
 
 
When Enabled has been selected and Yes is selected in the drop downlist -
the registry setting must be there with a value of 1
When Enabled has been selected and No is selected in the drop downlist - the
registry setting must be there with a value of 0
 
Is all the above possible?
 
 
Below is the adm file as it is now (I have put a lot of spaces in a part
section, this can also probably be done otherwise).
 
 
CLASS MACHINE
CATEGORY "Office Components"
           POLICY "PST Restrictions"
           KEYNAME "SOFTWARE\Microsoft\Office\11.0\Outlook"
                        PART "This setting restricts the use of PST files."
TEXT
                        END PART
 
PART "
"
TEXT
END PART
PART "Restrict PST files" DROPDOWNLIST
    VALUENAME DisablePST
            ITEMLIST
            NAME "Yes" VALUE NUMERIC 1 DEFAULT
            NAME "No" VALUE NUMERIC 0 
            END ITEMLIST
                        END PART
            END POLICY
END CATEGORY

 
Cheers,
 
 
Victor
 
 
 
 
 

  _____  

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Victor W.
Sent: zondag 22 oktober 2006 11:19
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Problem implementing a registry setting in ADM


Hi Alan,
 
Great work. I will implement it this way and offcourse will take a look at
the tool you suggested ;-)
 
Cheers,
 
 
Victor

  _____  

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Alan & Margaret
Sent: donderdag 19 oktober 2006 23:59
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Problem implementing a registry setting in ADM


Hi Victor,
 
You are correct that the problem is in your  ItemList. The parts in bold are
not valid:-
 
ITEMLIST
NAME "Yes" VALUE Numeric 1
VALUE NUMERIC 1 DEFAULT
NAME "No" VALUE Numeric 0
VALUE NUMERIC 0 
END ITEMLIST

An item list is a list of options. Each option must have a NAME and a VALUE.
You can have other keywords such as Numeric and Default.
 
Note: You don't really need to use an item List. A checkbox would be simpler
since it gives you an effective Yes/No value:-
 
   PART "Restrict pst files" CHECKBOX
    KEYNAME SOFTWARE\Microsoft\Office\11.0\Outlook
    VALUENAME DisablePST
    VALUEON NUMERIC 1
    VALUEOFF NUMERIC 0
   END PART ;Restrict pst files

Note: At the risk of incurring the rage of list members, you should consider
using an ADM Editor tool (we sell one). If nothing else, download it and
play with it for a month and you will learn a lot about writing your own ADM
files!
 
 Alan Cuthbertson


 Policy Management Software:-
http://www.sysprosoft.com/index.php?ref=activedir&f=pol_summary.shtml
ADM Template Editor:-
http://www.sysprosoft.com/index.php?ref=activedir&f=adm_summary.shtml
Policy Log Reporter(Free)
 <http://www.sysprosoft.com/index.php?ref=activedir&f=policyreporter.shtml>
http://www.sysprosoft.com/index.php?ref=activedir&f=policyreporter.shtml

 
----- Original Message ----- 
From: "Victor W." < <mailto:victor-w@xxxxxxxxx> victor-w@xxxxxxxxx>
To: < <mailto:gptalk@xxxxxxxxxxxxx> gptalk@xxxxxxxxxxxxx>
Sent: Friday, October 20, 2006 7:08 AM
Subject: [gptalk] Re: Problem implementing a registry setting in ADM


> 
> I managed to get it working, see below.
> It seems as if the Yes and No checkboxes dont go together with the VALEUON
> NUMERIC 1 and the VALUEOFF NUMERIC 0.
> Am I correct in my assumption?
> 
> CLASS MACHINE
> CATEGORY "Custom ADM Entries"
> POLICY "PST Restrictions"
> KEYNAME "SOFTWARE\Microsoft\Office\11.0\Outlook"
> PART "This setting restricts the use of PST files. Sander
> asks waarom?" TEXT
> END PART
> PART "Do you want to restrict PST files?" DROPDOWNLIST
> VALUENAME "DisablePST"
> ITEMLIST
> NAME "Yes" VALUE Numeric 1
> DEFAULT
> NAME "No" VALUE Numeric 0
>  END ITEMLIST
> END PART
> END POLICY
> END CATEGORY
> 
> 
> 
> 
> 
> -----Original Message-----
> From:  <mailto:gptalk-bounce@xxxxxxxxxxxxx> gptalk-bounce@xxxxxxxxxxxxx
[mailto:gptalk-bounce@xxxxxxxxxxxxx] On
> Behalf Of Victor W.
> Sent: donderdag 19 oktober 2006 22:33
> To:  <mailto:gptalk@xxxxxxxxxxxxx> gptalk@xxxxxxxxxxxxx
> Subject: [gptalk] Re: Problem implementing a registry setting in ADM
> 
> Thanks, that did it.
> 
> I now changed the adm file a bit and now it looks like this, but it gives
me
> an error when I add it.
> 
> CLASS MACHINE
> CATEGORY "Custom ADM Entries"
> POLICY "PST Restrictions"
> KEYNAME "SOFTWARE\Microsoft\Office\11.0\Outlook"
> VALUENAME "DisablePST"
> VALUEON NUMERIC 1
> VALUEOFF NUMERIC 0
> 
> PART "Restricting the use of PST files" TEXT
> END PART
> 
> PART "I want to restrict PST files" DROPDOWNLIST
> 
> ITEMLIST
> NAME "Yes" VALUE Numeric 1
> VALUE NUMERIC 1 DEFAULT
> NAME "No" VALUE Numeric 0
> VALUE NUMERIC 0 
> END ITEMLIST
> END PART
> END POLICY
> END CATEGORY
> 
> It gives me the error that line 21 has no value.
> 
> Anybody familiar with this?
> 
> Cheers,
> 
> 
> Victor
> 
> 
> 
> -----Original Message-----
> From:  <mailto:gptalk-bounce@xxxxxxxxxxxxx> gptalk-bounce@xxxxxxxxxxxxx
[mailto:gptalk-bounce@xxxxxxxxxxxxx] On
> Behalf Of Robert Tannehill
> Sent: donderdag 19 oktober 2006 17:00
> To:  <mailto:gptalk@xxxxxxxxxxxxx> gptalk@xxxxxxxxxxxxx
> Subject: [gptalk] Re: Problem implementing a registry setting in ADM
> 
> Victor,
> Make sure on the GPMC, you set View, Filtering, Only show policy settings
> that can be fully managed to Unchecked.
> Bob 
> 
> -----Original Message-----
> From:  <mailto:gptalk-bounce@xxxxxxxxxxxxx> gptalk-bounce@xxxxxxxxxxxxx
[mailto:gptalk-bounce@xxxxxxxxxxxxx] On
> Behalf Of  <mailto:victor-w@xxxxxxxxx> victor-w@xxxxxxxxx
> Sent: Thursday, October 19, 2006 8:49 AM
> To:  <mailto:gptalk@xxxxxxxxxxxxx> gptalk@xxxxxxxxxxxxx
> Subject: [gptalk] Problem implementing a registry setting in ADM
> 
> Gents and ladies,
> 
> I am trying to implement the following registry setting in an ADM file but
> it simply doenst show up in the GPO editor/GPMC.
> 
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Outlook]
> "DisablePST"=dword:00000001
> 
> The folder itself (Custom ADM Entries), does appear but the setting simply
> isnt there.
> Am I missing something? I sure must be :-)
> 
> I this setting I would also like to implement the VALUEON NUMERIC 1 and
the
> VALUEON NUMERIC 0. So that the setting is not deleted when choosing
disable.
> 
> Any suggestions are greatly appreciated.
> 
> See the adm file below.
> 
> Cheers,
> 
> 
> Victor
> 
> 
> CLASS MACHINE
> CATEGORY "Custom ADM Entries"
> POLICY "PST Restrictions"
> KEYNAME "SOFTWARE\Microsoft\Office\11.0\Outlook"
> PART "Do you want to restrict PST files?" TEXT
> END PART
> PART "I want to restrict PST files" DROPDOWNLIST
> VALUENAME DisablePST
> ITEMLIST
> NAME "Yes" VALUE Numeric 1
> NAME "No" VALUE Numeric 0
> END ITEMLIST
> END PART
> END POLICY
> END CATEGORY
> 
> ***********************
> You can unsubscribe from gptalk by sending email to
>  <mailto:gptalk-request@xxxxxxxxxxxxx> gptalk-request@xxxxxxxxxxxxx with
'unsubscribe' in the Subject field OR by
> logging into the freelists.org Web interface. Archives for the list are
> available at  <//www.freelists.org/archives/gptalk/>
//www.freelists.org/archives/gptalk/
> ************************
> ***********************
> You can unsubscribe from gptalk by sending email to
>  <mailto:gptalk-request@xxxxxxxxxxxxx> gptalk-request@xxxxxxxxxxxxx with
'unsubscribe' in the Subject field OR by
> logging into the freelists.org Web interface. Archives for the list are
> available at  <//www.freelists.org/archives/gptalk/>
//www.freelists.org/archives/gptalk/
> ************************
> 
> ***********************
> You can unsubscribe from gptalk by sending email to
>  <mailto:gptalk-request@xxxxxxxxxxxxx> gptalk-request@xxxxxxxxxxxxx with
'unsubscribe' in the Subject field OR by
> logging into the freelists.org Web interface. Archives for the list are
> available at  <//www.freelists.org/archives/gptalk/>
//www.freelists.org/archives/gptalk/
> ************************
> 
> ***********************
> You can unsubscribe from gptalk by sending email to
<mailto:gptalk-request@xxxxxxxxxxxxx> gptalk-request@xxxxxxxxxxxxx with
'unsubscribe' in the Subject field OR by logging into the freelists.org Web
interface. Archives for the list are available at
<//www.freelists.org/archives/gptalk/>
//www.freelists.org/archives/gptalk/
> ************************ 

Other related posts: