Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How can I disable a user account from the command line?
In Windows XP or 7.
net user [username] /ACTIVE:NO [/DOMAIN]
Hint: only add the /DOMAIN flag if you're not dealing with local users.
Required, but never shown