How to Enable or Disable Account in Windows 11
- 25 steps
- Needs administrator rights
This tutorial will show you how to enable or disable an account in Windows 11. It covers three methods: the net user command, PowerShell, and the Local Users and Groups tool.
To disable an account in Windows 11, open Windows Terminal (Admin) and run net user “UserName” /active:no, replacing UserName with the account name. Use /active:yes to turn it back on. The account is blocked from signing in immediately, and its files and settings stay intact. No restart is needed.
Why You Might Want to Do This
Disabling a user account in Windows 11 stops someone from signing in without deleting the account. The profile, files and settings stay exactly where they are. This is useful if you share your computer and need to block access for a while, for example for a former employee, a child’s account, or a profile you are not sure you still need. You can turn the account back on at any time.
What Happens When You Disable an Account
A disabled account cannot sign in. Its name no longer appears on the sign-in screen or in the account list on the Start menu. When you re-enable it, the name shows up again.
Which method to use:
- The net user command and PowerShell work on every edition of Windows 11, including Home.
- Local Users and Groups is only available in Windows 11 Pro, Enterprise and Education. It is not included in Home.
Option One
Enable or Disable Account Using the “net user” Command
Start by checking which accounts exist and whether each one is enabled. Use the exact account name from this list in the later commands.
- Right-click the Start button and select Terminal (Admin). Click Yes if the User Account Control prompt appears. A Windows Terminal window opens, usually in Windows PowerShell.
- If you prefer Command Prompt, open the dropdown arrow in the tab bar and select Command Prompt. Either one works for this method.
- Copy and paste the command below into Windows Terminal (Admin) and press Enter.You should now see a list of all accounts and their status (True or False). Note the exact name of the account you want to change.PowerShell
Get-LocalUser
Disable Account
- Open Windows Terminal (Admin) if it is not already open.
- Type one of the commands below and press Enter.
To disable a local account:
Command PromptNet user "<username>" /active:noOR
To disable a domain account:
Command PromptNet user "<username>" /active:no /domain - Replace <username> with the actual account name. Keep the quotation marks, because they let the command handle names that contain spaces. For example:You should see a message saying the command completed successfully. The account is now disabled.Command Prompt
Net user "User1" /active:no - To check, run
Get-LocalUserin a PowerShell tab (or net user in Command Prompt) again. The account should now show as disabled. You can then close Windows Terminal (Admin).
For a domain account, you need permission to change that account on the domain. If you get an access denied or “user name could not be found” error, check the spelling of the name and that you are signed in with the right rights.
Enable Account
Turning an account back on uses the same command with the opposite setting. Use the account name exactly as it appeared in the account list.
- Open Windows Terminal (Admin).
- Type one of the commands below and press Enter.
To enable a local account:
Command PromptNet user "<username>" /active:yesOR
To enable a domain account:
Command PromptNet user "<username>" /active:yes /domain - Replace <username> with the actual account name of the account you want to enable. For example:You should see a message saying the command completed successfully. The account will appear on the sign-in screen again.Command Prompt
Net user "User1" /active:yes - You can now close Windows Terminal (Admin) if you like.
Option Two
Enable or Disable Account in PowerShell
PowerShell has dedicated commands for local accounts. They are easy to read and work on every edition of Windows 11.
- Right-click the Start button and select Terminal (Admin). Click Yes if the User Account Control prompt appears.
- Make sure the tab says Windows PowerShell. If it opened in Command Prompt, open the dropdown arrow in the tab bar and select Windows PowerShell.
- Copy and paste the command below into PowerShell and press Enter.You should now see a list of all accounts and their status (True or False). Note the exact name of the account you want to change.PowerShell
Get-LocalUser
Disable Account
- Type the command below into PowerShell and press Enter.PowerShell
Disable-LocalUser -Name "<username>" - Replace <username> with the actual account name. For example:PowerShell usually prints nothing when this works. No message means no error. Run the list command again to confirm the account is now disabled.PowerShell
Disable-LocalUser -Name "User1"

Enable Account
- Type the command below into PowerShell and press Enter.PowerShell
Enable-LocalUser -Name "<username>" - Replace <username> with the actual account name. For example:Again, PowerShell shows nothing if the command worked. The account can now sign in and shows on the sign-in screen.PowerShell
Enable-LocalUser -Name "User1" - You can now close Windows Terminal (Admin) if you like.

Option Three
Enable or Disable Account in Local Users and Groups
You can disable or enable a user account in Windows 11 with the Local Users and Groups tool. It works if you have Windows 11 Pro, Enterprise, or Education. If you have Windows 11 Home, this tool is not available, so use one of the command methods above instead. In short, you open the tool, find the account in the Users folder, and double-click its name.
- Press Win+R, type
lusrmgr.msc, and press Enter. Click Yes if the User Account Control prompt appears. The Local Users and Groups window opens. - Click the Users folder in the left pane. The list of accounts appears in the middle pane.
- Double-click the account name (for example: “User1”) that you want to enable or disable. Its Properties window opens.
- On the General tab, check the box next to Account is disabled to disable the account. Uncheck the box to enable it.
- Click OK. The change takes effect right away. A disabled account is shown with a small down-arrow icon in the Users list.
- You can now close Local Users and Groups if you like.

Summary
You’ve learned three straightforward ways to disable an account in Windows 11: using the ‘net user’ command, PowerShell, or the Local Users and Groups tool. Each method can be reversed, so you can enable the account again whenever you need to.
Frequently asked questions
How to deactivate the Windows 11 account?
To deactivate a local account in Windows 11, sign in as an administrator and open Terminal (Admin) or Command Prompt as administrator. Type net user "username" /active:no, then press Enter. The account can no longer sign in, but its files and profile stay in place. For a domain account, add /domain to the end of the command.
How to create a local account in Windows 11?
To create a local account in Windows 11, open Settings, select Accounts, then Other users. Choose Add account, then select I don't have this person's sign-in information. Pick Add a user without a Microsoft account, enter a user name and password, and select Next. You must be signed in as an administrator.
Still have a question?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!