Create Local Administrator Account

This script creates a local user account and adds it to the Administrator group.

Script Content

NET USER NBAdmin "Bla1234!" /add /active:yes /comment:"NBAdmin " /expires:never /passwordchg:no /passwordreq:no
NET LOCALGROUP Administrators NB /add

Notes

  • Username: NBAdmin

  • Password: Bla1234!

  • Account is active and never expires.

  • Assigned to the local Administrators group.

Last updated