In this article you will learn how to enable or disable a user account in Windows 10 using the command line or using the utility program LUSRMGR.
If you manage a multi-user system and you must disable one or more user accounts without deleting them, then this article is for you. Windows allows you to disable a user account so that it can no longer be logged in or changed.
Unlike the complete deletion of the user account, disabling it keeps user data that is easily accessible even when the user account is re-enabled.
Μέθοδος 1 - Μέσω του LUSRMGR
Note: This method only works on versions of Windows 10 Pro, Education and Enterprise. For other versions, see the 2 method below.
1. Πατήστε το πλήκτρο Win + R και στο παράθυρο Εκτέλεσης που θα εμφανιστεί πληκτρολογήστε lusrmgr.msc για να ανοίξετε το βοηθητικό πρόγραμμα "Locals χρήστες και ομάδες" (Local Users and Groups). Κάντε κλικ στο button OKAY.
2. Στο παράθυρο του lusrmgr, κάντε διπλό κλικ στους χρήστες. Τώρα κάντε δεξί κλικ στο λογαριασμό χρήστη που θέλετε να απενεργοποιήσετε και κάντε κλικ στην επιλογή "Ιδιότητες".
3. Στο παράθυρο των ιδιοτήτων, επιλέξτε την επιλογή "Ο λογαριασμός είναι απενεργοποιημένος". Κάντε κλικ στο κουμπί Εφαρμογή και μετά στο OK.
This move should disable the user account. The account will no longer be visible on the login screen, which proves that the user is disabled.
Μέθοδος 2 - Μέσω της γραμμής εντολών
You can also use the command line to disable a user account. Follow these steps:
1. Right-click the button Start ή πατήστε ταυτόχρονα τα πλήκτρα Win + X και επιλέξτε το "Γραμμή εντολών (Διαχειριστής)" για να ανοίξετε τη γραμμή εντολών ως διαχειριστής.
2. In the command prompt window, type net user and press Enter.
3. Then type the following command, and then press the Enter key:
net user /active:no
* Make sure you replace it with the actual account name of the user you want to disable.
When the command completes successfully, you will receive a message confirming that the selected user account is now disabled.
Για να ενεργοποιήσετε ξανά τον απενεργοποιημένο λογαριασμό χρήστη, απενεργοποιήστε απλώς την επιλογή "Ο λογαριασμός είναι απενεργοποιημένος" ή εκτελέστε την εντολή net user /active:yes στo Command Prompt , where should be replaced with an inactive user account.