Jump to content
MattHiggs

Compare message box input to currently logged on user's password

Recommended Posts

MattHiggs

Hey all.  So my end goal here is to, like the subject says, compare the currently logged on users password to the result of an input box and, once the input is correct, pass the result along with the other necessary information, into the sysinternals autologon tool to automate the logon process for a deployment system I am working on.  I have never tried anything like this before, and would appreciate any feedback on how I can accomplish this: can I query this information from WMI, do I have to run a command using the credentials provided and see if it takes, or something else?  Thanks in advance.

Share this post


Link to post
Share on other sites
water

Why would you need to do a compare before passing th password to the SysInternals tool? Pass the unchecked password to the tool and check the returncode. If the password was wrong then you should get a corresponding error code.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
MattHiggs

Hmmm.  I was under the impression the tool accepted whatever it was given, right or wrong.  For example, I accidentally switched the places where the "domain" and "password" where meant to be placed in the command, and it still took the input as valid, but next time I restarted it tried to login "User: mypassword\username"  and "password: logondomain".  This is why I would like to verify the password before passing it to the command

Share this post


Link to post
Share on other sites
water

I see.
Validating a password has been discussed a few times on the forum.
Will post a link as soon as I find one of them ...


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
water

Check this thread how to validate a password:

 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×