Batch script to create and add local users to Administrators group

Basic batch file to create a local user and then add it to the local admin group


net user “user1” “Pa$$w0rd” /add
net user “user2” “Pa$$w0rd” /add
net user “user3” “Pa$$w0rd” /add

echo “adding users to admin group”

net localgroup administrators user1 /add
net localgroup administrators user2 /add
net localgroup administrators user3 /add

This entry was posted in Scripting. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *