- To disable an account on Windows 11, open Command Prompt (Admin) and run the “net user “ACCOUNT” /active:no” command.
- Alternatively, in PowerShell (admin), run the “Disable-LocalUser -Name ACCOUNT” command.
- You can also disable local accounts on Windows 11 from Computer Management and the Settings app.
On Windows 11, if you want to temporarily prevent a user from signing into the computer, you don’t have to delete the account. You can disable it to preserve their settings, apps, and files.
If you need to restrict access to a user temporarily, Windows 11 includes multiple ways to disable an account using Command Prompt, PowerShell, and Computer Management. You can also use the Settings app, but you can only disable members created using the Family settings.
This guide will teach you the different ways to disable an account on Windows 11.
- Disable user account on Windows 11 from Command Prompt
- Disable user account on Windows 11 from PowerShell
- Disable user account on Windows 11 from Computer Management
- Disable user account on Windows 11 from Settings
Disable user account on Windows 11 from Command Prompt
To disable a user account from Command Prompt on Windows 11, use these steps:
-
Open Start on Windows 11.
-
Search for Command Prompt, right-click the top result, and select the Run as administrator option.
-
Type the following command to identify the account and press Enter:
net user
-
Type the following command to disable the account and press Enter:
net user "ACCOUNT" /active:no
In the command, replace “ACCOUNT” with the account’s name to disable. This
net user "Local Demo" /active:no
example disables the “Local Demo” account.
Once you complete the steps, the account will be disabled, and the user won’t be able to sign in.
If you have to re-enable the account, then run the net user "ACCOUNT" /active:yes
command
Disable user account on Windows 11 from PowerShell
To disable an account through PowerShell, use these steps:
-
Open Start.
-
Search for PowerShell, right-click the top result, and select the Run as administrator option.
-
Type the following command to identify the account and press Enter:
Get-LocalUser
-
Type the following command to disable the account and press Enter:
Disable-LocalUser -Name "ACCOUNT"
In the command, replace “ACCOUNT” with the account’s name to disable. This
Disable-LocalUser -Name "Local Demo"
example disables the “Local Demo” account.
After you complete the steps, the PowerShell command will disable the account.
If you have to re-enable the account, then run the Enable-LocalUser -Name "ACCOUNT"
command
Disable user account on Windows 11 from Computer Management
To disable an account with Computer Management, use these steps:
-
Open Start.
-
Search for Computer Management and click the top result to open the app.
-
Browse the following path:
Computer Management > System Tools > Local Users and Groups > Users
-
Right-click the user account and select the Properties option.
-
Click the General tab.
-
Check the “Account is disabled” option.
Once you complete the steps, the user will no longer have access to the account until you clear the “Account is disabled” option.
Disable user account on Windows 11 from Settings
To disable a Family member account on Windows 11, use these steps:
-
Open Settings.
-
Click on Accounts.
-
Click the Family page.
-
Under the “Your family” section, select the account and click the Block sign in button.
-
Click the Block button.
After you complete the steps, the users won’t be able to sign in until a family organizer restore access to the account.