To unlock a domain user from the command line, use this command:

net user <username> /domain /active:yes

This can also be done using Powershell:

Unlock-ADAccount -identity CN=John,OU=myUsers,DC=myDomain,DC=local