Create Local Windows Administrator via Command Line

Overview

This article will provide the commands to create a new user, assign them a password, require that they change the password after their first logon, and add them to the local Adminstrators group.

Commands

net user Username password /ADD /PASSWORDCHG:Yes /logonpasswordchg:yes
net localgroup "Administrators" "Username" /add