Verify domain credentials at command line

jing picture jing · Mar 21, 2011 · Viewed 37.8k times · Source

Is there a windows command that will allow me to verify a domain account/password?

Answer

Jack B Nimble picture Jack B Nimble · Sep 22, 2011

You could use the command RUNAS, it is not technically a commandline to validate credentials, but it CAN be used for that.

runas /noprofile /user:mycomputer\administrator "notepad"

If it fails it returns:

RUNAS ERROR: Unable to run - notepad
1326: Logon failure: unknown user name or bad password.