To create a local account on Windows 11, open Settings, go to Accounts > Other users, select Add account, then choose I don't have this person's sign-in information and Add a user without a Microsoft account. You need to be signed in as an administrator to do it.
The Settings route is the one most people want. If you prefer a terminal, or you are setting up several accounts, PowerShell's New-LocalUser and the older net user command do the same job. All three are covered below, along with what to do after the account exists.
Create a local account in Settings
These are the steps from Microsoft's support page for Windows 11:
- Open Settings and select Accounts > Other users. Pasting
ms-settings:otherusersinto the Win+R box opens the same page. - Under Add other user, select Add account.
- On the Microsoft sign-in window, select I don't have this person's sign-in information.
- Select Add a user without a Microsoft account.
- Follow the on-screen instructions to finish setup.
Microsoft's page does not describe the individual prompts in step 5, so what you see there may differ by Windows build. Expect to be asked for at least a user name. The new person then signs in from the lock screen by choosing the new account.
Microsoft's page also says it recommends a Microsoft account over a local account, citing syncing across devices and security benefits. That is Microsoft's position, and a local account is a legitimate choice if you do not want to tie the PC to an online account.
Create a local account with PowerShell
Open Windows Terminal or PowerShell with Run as administrator. The New-LocalUser cmdlet creates the account. If you leave out both -Password and -NoPassword, it prompts you for the password, which keeps the password out of your command history:
New-LocalUser -Name "alex" -FullName "Alex Example" -Description "Family PC account"
Microsoft's documentation shows a second pattern that reads the password as a secure string first:
$Password = Read-Host -AsSecureString
New-LocalUser -Name "alex" -Password $Password -FullName "Alex Example"
Example output, in the format Microsoft's page shows:
Name Enabled Description
---- ------- -----------
alex True
A few rules from the cmdlet reference:
- A user name can have up to 20 characters. It cannot contain
" / \ [ ] : ; | = , + * ? < > @, and it cannot be made only of periods or spaces. - The name cannot match any other user name or group name on the computer.
- A password can have up to 127 characters.
-Descriptionhas a 48-character maximum.-NoPasswordcreates an account with no password at all. Use it only if you will set one straight away.- The
Microsoft.PowerShell.LocalAccountsmodule is not available in 32-bit PowerShell on a 64-bit system, so use the normal 64-bit terminal.
Create a local account with net user
In an elevated Command Prompt, net user with /add creates the account. An asterisk in the password position makes the command prompt for the password, and the characters you type are not shown:
net user alex * /add /fullname:"Alex Example"
Microsoft's reference says the password must satisfy the minimum length set with net accounts /minpwlen, and that the user name can have as many as 20 characters. Running net user on its own lists every account on the computer, which is a quick way to confirm the new one exists. The same command accepts /active:no if you want an account created but not yet usable.
Avoid typing the password directly on the command line. It ends up visible on screen and in anything that records your session.
Make the new account an administrator
Microsoft's steps do not offer an account type during creation, so the new account is a regular one. To change it in Settings, go back to Accounts > Other users, open the menu for the account, select Change account type next to "Account options", pick the type from the dropdown, and select OK. In PowerShell, add the account to the Administrators group:
Add-LocalGroupMember -Group "Administrators" -Member "alex"
Microsoft advises keeping the number of administrators low and using standard accounts for everyday tasks, because administrators have full control of the system. For the full set of options, including demoting an account and renaming one, see how to change the administrator account on Windows 11.
Set or change the password afterwards
If you created the account without a password, or you want to change it, the guide on setting or removing a sign-in password covers the options. From an elevated Command Prompt, net user alex * prompts for a new password for that account.
Check that the account exists
In PowerShell, list local accounts:
Get-LocalUser
The new account should appear with Enabled set to True. To see it as the user would, select the Start button, select your account picture, and choose the new account, or sign out and pick it on the sign-in screen. The first sign-in takes longer than later ones because Windows builds the profile.
If it still fails
- "Add account" is missing or does nothing. You are probably signed in to a standard account. Sign in to an administrator account and try again.
- Access denied in PowerShell or Command Prompt. The window is not elevated. Close it and reopen it with Run as administrator.
- The name is rejected. Check it against the rules above: no more than 20 characters, none of the forbidden characters, and not the same as an existing user or group.
- The password is rejected. It may be shorter than the minimum set with
net accounts /minpwlen. Runnet accountsto see the current minimum length. - The cmdlet is not recognised. You may be in 32-bit PowerShell on a 64-bit system. Open the 64-bit terminal.
- The Microsoft sign-in window will not offer the no-Microsoft-account link. Microsoft's page describes the steps above for Windows 11. If your build shows something different, create the account with
New-LocalUserinstead, which does not depend on that window.
Frequently asked questions
- Do I need to be an administrator to create a local account on Windows 11?
- Yes. Adding an account through Settings or from an elevated terminal needs an account that already has administrator rights. A standard account cannot add other users.
- Is a local account a standard user or an administrator?
- Microsoft's steps do not offer an account type while you create the account. Change it afterwards under Accounts > Other users > Change account type, or add the account to the Administrators group in PowerShell.
- How long can a local account name and password be?
- Microsoft's documentation for New-LocalUser and net user says a user name can have up to 20 characters and a password up to 127 characters. A password must also meet the minimum length set with net accounts /minpwlen.
- Does Microsoft recommend a local account?
- No. Microsoft's own instructions recommend a Microsoft account because it syncs across devices and has security benefits. A local account is still fully supported for people who prefer not to sign in with one.