Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Create Local Windows Administrator via Command Line

RSS
Modified on Fri, Nov 20, 2015, 2:18 PM by Administrator Categorized as Windows (OS, IE, IIS, and MSMQ)

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

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2018, Patrick Jasinski.