Create a local admin on windows 10/11 for Harman computers
Creating a local admin can be done different ways, manually from the machine itself with admin credentials or through ninja script in the automation tab.
**Windows 10**
Method 1: Using a Script Through Ninja
- Select the organization then location and finally the device you want to add a local admin to.
- Hover your mouse over the play button next to the device name >Run Automation > Script >select the Add ISNNOC Local Admin Script
- Enter your authentication code and script will be executed
- reference ISNNOC password from custom fields tab for login credentials.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Method 2: Using the Settings App
- Open Settings: Press Windows key + I to open the Settings app.
- Go to Accounts: Click on "Accounts" in the Settings menu.
- Add Someone Else to This PC: Click on "Family & other users" on the left pane, then click "Add someone else to this PC" on the right.
- Create a New Account: Click on "I don't have this person's sign-in information," then select "Add a user without a Microsoft account".
- Enter User Details: Enter the new user's name, password, and security questions.
- Change Account Type: After creating the account, click on the new user's name, then click "Change account type". Select "Administrator" and click "OK".
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Method 3: Using Command Prompt
- Open Command Prompt as Administrator: Press Windows key + R, type cmd, and press Ctrl + Shift + Enter to open Command Prompt with administrative privileges.
- Create New User: Type the following command and press Enter (replace NewUser with the desired username):
- powershell
- net user NewUser /add
- Add to Administrators Group: Type the following command and press Enter:
- powershell
- net localgroup Administrators NewUser
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Method 4: Using Local Users and Groups
- Open Local Users and Groups: Press Windows key + R, type lusrmgr.msc, and press Enter.
- Create New User: In the Local Users and Groups window, right-click "Users" and select "New User".
- Enter User Details: Fill in the user's name, full name, and password.
- Add to Administrators Group: Double-click the new user, go to the "Member of" tab, click "Add," type Administrators, and click "OK."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Windows 11**
Method 1: Using a Script Through Ninja
- Select the organization then location and finally the device you want to add a local admin to.
- Hover your mouse over the play button next to the device name >Run Automation >Script >select the Add ISNNOC Local Admin Script
- Enter your authentication code and script will be executed.
- Reference ISNNOC password from custom fields tab for login creds.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Method 2: Using the Settings App
- Open Settings: Press Windows key + I to open the Settings app.
- Go to Accounts: Click on "Accounts" in the Settings menu.
- Add Someone Else to This PC: Click on "Family & other users" on the left pane, then click "Add someone else to this PC" on the right.
- Create a New Account: Click on "I don't have this person's sign-in information," then select "Add a user without a Microsoft account".
- Enter User Details: Enter the new user's name, password, and security questions.
- Change Account Type: After creating the account, click on the new user's name, then click "Change account type". Select "Administrator" and click "OK".
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Method 3: Using Command Prompt
- Open Command Prompt as Administrator: Press Windows key + R, type cmd, and press Ctrl + Shift + Enter to open Command Prompt with administrative privileges.
- Create New User: Type the following command and press Enter (replace NewUser with the desired username):
- powershell
- net user NewUser /add
- Add to Administrators Group: Type the following command and press Enter:
- powershell
- net localgroup Administrators NewUser /add
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Method 4: Using Local Users and Groups
- Open Local Users and Groups: Press Windows key + R, type lusrmgr.msc, and press Enter.
- Create New User: In the Local Users and Groups window, right-click "Users" and select "New User".
- Enter User Details: Fill in the user's name, full name, and password.
- Add to Administrators Group: Double-click the new user, go to the "Member of" tab, click "Add," type Administrators, and click "OK."