Check username password combination in Windows

Posted by mwolfe02 on Super User See other posts from Super User or by mwolfe02
Published on 2010-02-05T20:59:31Z Indexed on 2010/03/15 6:20 UTC
Read the original article Hit count: 370

Filed under:
|
|
|

I have an autohotkey script that maps multiple network drives using a series of net use commands. I enter my password once into an autohotkey inputbox, then run all of the net use commands with the entered password. This works great as long as I enter the correct password. If I mistype my password it runs all the net use commands with an incorrect password and my account ends up locked out.

Aside from catching the error code/output from the net use command, is there some other way (through Autohotkey/Windows command-line) to verify the username/password combo is correct before I run it multiple times?

© Super User or respective owner

Related posts about autohotkey

Related posts about password