Create New Local Administrator From Command Line

The following command line tools will allow you to:

  1. Create a new local user account
  2. Set the account from step 1 to password never expire
  3. Add the account from step 1 to the local “Administrators” group

net user /add

wmic useraccount where “Name=’‘” set PasswordExpires=false
net localgroup Administrators %computername%\ /add
I used these commands during a Task Sequence in SCCM 2012.

  1. #1 by Leslie Lim on July 2, 2015 - 6:40 am

    Wow. Awesome article. Please do more articles like this in the future. Very informational and knowledgeable. I will expect more from you in the future. For now i will just bookmark your page and surely I'm gonna come back later to read more. Thank you to the writer!

    Rica
    http://www.imarksweb.org

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: