On Sun, Feb 15, 2004 at 21:03:48, Nils �stbjerg wrote:

> On Sun, Feb 15, 2004 at 08:46:11, Patrick J. LoPresti wrote:
> > Here is how I think this should work.
> > 
> >   1) Add an "--admin" switch which says to modify the Policies key
> >      instead of the CurrentVersion key.
> > 
> >   2) If "--admin" is not provided, unset the relevant Policies
> >      subkey(s) to un-grey-out the Control Panel gadget.
> > 
> >   3) Die with usage instructions if the user tries to configure one of
> >      the new settings without providing the "--admin" key.
> > 
> > Or maybe we should call it "--policy" instead of "--admin".
> 
> I'll go for --policy.
> 
> 
> > 
> > > My biggest problem is that I havent really got any experience with
> > > perl.  I'll try to fiddle with it this weekend.
> > 
> > If you want to learn some Perl, go for it!  Otherwise, if you will
> > tell me the exact interaction between the keys (in particular, how I
> > can do the "un-grey-out" part), I would be glad to update the script.
> 
> I've done a new/clean implementation of a policy based script and that 
> works. It took me a while to figure out how to create new keys, but 
> with a lot of cut'n'paste and fiddling I got that working.
> 
> I'll start implementing the old way into the script now.

Attached is my script. 

I have tested that it sets the rigth keys on windows XP SP1, but I 
havent tested that is actually updates from a sus server yet. 

I'll continue to test it to see if I was too tired when I made and 
tested it.




Regards,

Nils




-- 
Nils �stbjerg                  mailto:[EMAIL PROTECTED]

Attachment: auconfig.pl
Description: Perl program

Reply via email to