Setting User Rights Assignments with a script

  • Thread starter Thread starter Tom Kennedy
  • Start date Start date
T

Tom Kennedy

Any one know how to set User Rights Assigments with a
script on W2k and W2003. For example, how do youe set log
on a a service right with a script. Any help appreciated.

(e-mail address removed)
Tom
 
Take a look at the NTrights.exe resource kit utility. It's available for
download as part of the Windows Server 2003 Resource Kit Tools.

Hope this helps

Oli
 
In addition to what Oli suggested you can also use secedit in a script to import your
own custom .inf security template that may contain only that one our right
assignment. Of course for domain computers Group Policy can be used to assign user
rights via an Organizational Unit GPO to computers in the OU. --- Steve
 
Do you by any chance have a simple example that has the
format of the .inf file, say for "Log on as a service".

The secedit help is not too helpful.

Tom
-----Original Message-----
In addition to what Oli suggested you can also use
secedit in a script to import your
 
Use the mmc console and add the security templates snapin. The expand the security
templates so that you see all the default ones and right click and select new. Choose
a name for it and select OK and you now have a blank security template to work with.
Go to security settings/local policies/user rights and you will see the user right
for logon as a service which you can configure as you need. --- Steve
 
Back
Top