How do I unlock a user account from command line prompt?

Posted on 2009-02-09
Last Modified: 2012-05-06
Assuming I am a domain administrator, how can I see and unlock a user account in my domain by means of Windows command line either in CMD shell or in PowerShell?
Question by:midfde
    LVL 2

    Accepted Solution

    "net user" will show you all the current users and "net user USERNAME /active:yes" will activate it. More user account commands can be by running "net help user"

    Happy unlocking!
    LVL 32

    Assisted Solution

    LVL 1

    Author Closing Comment

    "/domain" switch is essential.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Read about achieving the basic levels of HRIS security in the workplace.
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now