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”.
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 ###
What privileges do local administrator accounts have?
Ready to check your privilege? The Administrator account has complete access to the local device’s files, directories, services, and other resources. It can also create new local users, assign user rights, and assign permissions.
Are there any security risks when creating a local administrator account?
Creating a local administrator account could pose a security risk as it provides greater privileges for the user over the system. We therefore recommend limiting the number of users in the local admin group as well as creating strong, unique passwords for any local administrator account created.
Admin permissions needed to run this script.
Explore our shared script library
The all-in-one IT management platform that will take your IT operations to the next level!