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

Comments

Popular posts from this blog

How To use ASPNET_SetReg to store encrypted data in the registry and then decrypt the data for use in your app

Nostalgia for SNL's Il Returno De Hercules

PowerShell Script to Clean the Windows Installer Directory