
Way to script Policy settings? Specifically the User Account Rights?
You can't directly edit user rights from scripts. You can create a script
that modifies a security template and then imports it into the GPO like
Philip mentions. Or, you could wrap the LsaAddAccountRights call into an
exe or a com object to be called from scripts.
N
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Quote:
> Im pretty sure there is a way to create a security template for a GPO and
> then export the settings. Using the new GPMC I think you can do this.
Then
> you have a template with all of the settings that you want so you can use
it
> somewhere else.
> Philip Nunn
> > There has to be a means to script the User Account Rights... can't seem
to
> > find it anywhere though...
> > Anybody been able to figure out how to modify the User Account Rights
> > (besides using the NTRights tools? I want to be able to deploy or
> > redistrubute it.).