We help IT Professionals succeed at work.

how to set user rights in command line?

dynamicrevolutions
dynamicrevolutions used Ask the Experts™
on
hi how do i set user rights to Administrator using command line? (windows 2003)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
This can also be done with the Restricted Groups group policy:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_scerestrictgroups.mspx?mfr=true

Keep in mind this will remove anyone from the group who is not in the policy (Learned this the hard way).  You can also use the net localgroup command from a computer startup script to add it to all computers under the policy.  Here is the syntax:

net localgroup "Administrators" "domainname\username" /add

Let me know if you have any questions or need clarification
Crow

Commented:
What do you mean by "user rights"?    Are you talking about changing the read/write permissions on files?