Need to create a local administrator account? Mayhaps you need to install or configure software, troubleshoot issues on a local machine, bypass restrictions, or perform maintenance tasks… Whatever your needs, we got the script for you!
The script uses the net user and net localgroup commands to create a new user and add it to the local administrator group.
Net user is a command-line tool which can be used to create, delete or modify user accounts. It creates a user, “username” and password, “password”. Replace the username and password with the username or password of your choice.
Net localgroup is a command-line tool which can be used to create, delete or modify computer groups. It adds the user, “username” in the local group called “Administrators”.
The Script:
Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *
###
net user username password /add
net localgroup administrators username /add
###
Technical Notes:
Admin permissions needed to run this script.