Posts

Showing posts from March, 2012

Unlock a local account on a remote system using WMIC.exe

You can use the wmic.exe command line tool that comes with XP, Vista, and Windows 7 to run remote commands on a system. The command to unlock an account on a local system is: net user [username] /active:yes The command to unlock a local account on a remote system is: wmic /node:[IP Address] process call create "net user [username] /active:yes" For more on the WMI command check out this article on Microsoft's Technet: http://technet.microsoft.com/en-us/library/bb742610.aspx And just as a final note, the command to unlock a domain account in the domain you are logged into is: net user [username] /domain /active:yes