Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows cmd.exe Command-Prompt ► ««« »»»

Quickly disable windows user account via command line?


Very popular is the easy and fast deactivation of users via command line on MS Windows 11, 10, ... and MS Server 2022, 2019, ... operating systems!



Everyone knows how to quickly obtain information about a specific user account, but NET USER can do even more, especially those who have created many user accounts may want to quickly deactivate one or the other, why not if it is possible in the command prompt.
 
 
Content:

1.) ... Deactivating user accounts via the command prompt!
2.) ... What should be considered when deactivating a user account?
3.) ... More tips on user accounts and the command prompt ... and one way or another!




1.) Deactivating user accounts via the command prompt!

1. Start the command prompt in admin mode  << As described here
(Windows + R command cmd and Ctrl + Shift + Enter)

2. Now you can list all with net user if the user name is not known

3. And the relevant user Deactivate account, for example "user-1" in this case 

To deactivate the account just type the command with /active:no here in the example the user account is "user-1" to deactivate it or  /active:yes here as an example :



C:> net user

C:> net user user-1 /active:no
The command ran successfully.

C:> net user user-1 /active:yes
The command ran successfully.


It always appears after confirming "The command was executed successfully." if the ran successfully, or the error message if it failed. 

2.) What should be considered when deactivating a user account?

You should use it with caution so that you don't unintentionally lock yourself out of the MS Windows PC, because then only starting in safe mode and the system administrator account will help!

But quite practical, especially on the Windows Home versions! Disabling a user account removes the account's icon from the login screen and the Fast User Switching menu

The nice thing is you can always reactivate the account later without losing any data and it not only works in Windows 10 and 11 but activation or deactivation works on any MS Windows OS!

3.) More tips on user accounts and the command prompt ... and one way or another!


►► Hide fast user switching in Windows 10/11!
►► Make MS Windows 10 / 11 standard user account a guest user!
►► WDAGUtilityAccount a secret user account under MS Windows OS!
►► Make administrator account standard user under MS Windows!



 


FAQ 137: Updated on: 12 October 2022 07:57 Windows
Windows-Console

Deleting File or Folder via Command Prompt!


Deleting file or folder via command prompt on MS Windows desktop and server operating systems is a popular solution to delete Every once in a while, due
Windows-Console

How to create a batch file on / for MS Windows?


Automation batch files for Windows are becoming more and more popular, it is even more important to correctly name and use the batch, which is often referred
Windows-Console

What are command prompt internal commands?


The Windows CMD has internal commands that are in the command prompt itself, this does not start another exe that is started separately The external commands
Windows-Console

Looking for an example of a sub-function in a batch file?


Sometimes you just want a plain example of a subfunction ergo Sub-Routine in a command prompt batch file to understand how it works The CALL command starts
Windows-Console

Rename JPEG to JPG via command line, but how?


Sometimes you just want to rename JPEG to JPG to keep things in order, you can do that easily from the command line on MS Windows Desktop and Server OS
Windows-Console

Searching in files by string via command prompt?


The classic search in files for a character string via the command prompt is hardly used anymore, but it is still available on Windows 11, 10, In order
Windows-Console

Deleting files with no content using a batch file, but how?


Deleting files without content with a batch file, command prompt, or via the address bar in File Explorer is quite popular Here you can find out. that

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: 2019, 2022, windows, console, quickly, disable, user, account, command, line, very, popular, easy, fast, deactivation, users, server, operating, systems, everyone, Questions, Answers, Software




    

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + IsMyTouchScreenOK
  + Print.Test.Page.OK
  + OpenCloseDriveEject
  + ColorConsole
  + IsMyLcdOK
  + DesktopDigitalClock
  + ClassicDesktopClock
  + PreventTurnOff
  + QuickMemoryTestOK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Windows 2021 | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2023 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
0.077


► See the secret network connections to the computer in command prompt!  ◄

► Microsoft Visual Studio 2010 / 2017 Professional Trial, 30 to 90 days! ◄

► Option to after PDF saving to open automatically PDF! ◄

This website uses cookies to ensure you get the best experience on our website more Infos & Privacy Policy
....