Disable or block user account in Windows 11

Stefan
Disable or block user account in Windows 11

If you share your computer with multiple people, you usually have multiple user profiles on the computer. Each user has a separate profile that makes specific settings and apps available only to that user.

However, if you no longer use an account in Windows 11, there are some options. You can delete the user account, including the profile, or disable it. Disabling or blocking a user account has advantages over deleting the profile.

If you disable the account in Windows 11, the profile settings, such as apps and personal settings, are on your computer. If you need the account again in the future, it exists user account still on the computer and you can use it again after you enable the account.

Suppose you remove a computer user from Windows 11 altogether. In that case, they will lose their entire profile, including all settings, personal files such as documenten, images and apps. This article describes how to disable a user profile in Windows 11 in three different ways.

Disable or block user account in Windows 11

Disable user account through Computer Management

You can do a lot with Computer Management settings in Windows 11 to manage. It can also be used to manage user accounts, for example to disable a user account.

Right-click the Start button and then click Computer Management on the menu. Click on “Local users and groups” on the left and then on “Users”.

Now you will see all user accounts on the computer in a list view. Double-click the user account you want to disable.

Read also
Windows 10: Switch to a local account instead of Microsoft Account

On the General tab, select the “User account is disabled” checkbox to disable the user account. Clear this check box to enable the user account.

Disable Windows 11 account via Computer Management

Disable a user account via PowerShell

Windows PowerShell is an object-oriented automation engine and scripting language with an interactive command-line shell. Microsoft developed PowerShell to help IT professionals configure computer systems and automate administrative tasks.

You can use it to disable a user account and much more.

Right-click on the Start button, in the menu click on “Windows Powershell (admin)” or “Windows Terminal (admin)".

Now we first need to identify the user account we are trying to disable. To list all user accounts using PowerShell, enter the following command.

Get-LocalUser

Now you will see a list of all user accounts, then you can use the following command to disable a specific user account.

Disable-LocalUser -Name "Gebruikersnaam"

Block user account in Windows 11 via PowerShell

To enable a user account using PowerShell, enter the following command.

Enable-LocalUser -Name "Gebruikersnaam"

Block a user account via command prompt

In Windows operating systems, the Command Prompt is a program that mimics the input field in a text-based user interface using the Windows graphical user interface (GUI).

It can be used to execute entered commands and perform advanced management functions. It can also be used to diagnose and resolve specific Windows issues, such as user account lockout.

Click the Search button Windows 11 taskbar. In the search field, type: cmd.exe. Then right click on “Command Prompt” and click “Run as Administrator”.

Read also
Set separate wallpaper for virtual desktop

First you'll want to list all the user accounts on the computer. You can do this by typing the following command in the Command Prompt window.

net user

Next, you need to identify the user account name to be blocked. Once you have found the user account name to block, type the following command to block the account.

net user "username" /active:no

If the command completed successfully, the user account is now locked.

Disable user account via Command Prompt in Windows 11

Lees meer:

I hope this helped you. Thank you for reading!


Problem solved?


Help other people too.
Share this article on a website, forum or via social media.

Join our new computer forum for questions and computer help.
Do you have a computer question?

The email address will not be published. Required fields are marked with *