duplicate local security setting

  • Thread starter Thread starter Bertrand
  • Start date Start date
B

Bertrand

Is there a way to modify the local security setting from
a batch file and/or by using ADSI/WMI?

I need to be able to add the Guest user to the "Access
this computer from the network" under the user rights for
the local policies.
I successfuly changed the setting using the secpol.msc
mmc snapin, but I need to have it changed within a script.

I tried to export the policies by using the secedit tool,
but without success.

Any help greatly appreciate.

Bertrand
 
The only way I know of to change this, or any policy value,
programmatically is to predefine a template with the setting
and then shell out to secedit to apply the template (and thereby
the policy setting). Not good, but there is no programatic interface
to policy settings, and this seems to include user rights.
 
Back
Top