How to add a domain user to the local Administrators group using command lines

How to add a domain user to the local Administrators group using command lines

CHUONG K. NGUYEN – BSc., MCSEx2, MCSAx2, MCP, MCTS, MCITP, CCNA

Use the following commands to achieve the above purpose:

net localgroup administrators DOMAINNAME\DOMAINUSERNAME /add
net localgroup administrators DOMAINNAME\DOMAINGROUPNAME /add

That’s it.