how to add administrators rights to a domain user?

how to add administrators rights to a domain user using COMMAND PROMPT? only using command prompt command
thank you
maurice cristenAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lee W, MVPTechnology and Business Process AdvisorCommented:
net localgroup administrators username /add 

Open in new window

More information available with the various hep prompts you get from net use /? and from this link:
maurice cristenAuthor Commented:
than k and how to see all info about a domain user?
for local user i can type this: net user admin2 , what about domain user? net user and then ?
Lee W, MVPTechnology and Business Process AdvisorCommented:
When adding a domain user, you must specify the domain name and the machine must be a member of the domain.  Example, domain is "test", user is "user"
net localgroup administrators test\user /add

This explicitly answers your original question.  If you have new questions, they should be asked separately.  

Obtaining information about a user depends on what you want to get. You can use PowerShell and DSQUERY in a classic command prompt.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tom CieslikIT EngineerCommented:
To addition to Lee W comment...
To make this work you must be a local administrator group member.
You can't add yourself to local admins or you can't and any other domain user to local administrators group if you are not local administrator.
maurice cristenAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.