#205815 - 2012-09-26 02:37 PM
Detect a password change within last 5 minutes only
|
ADynes
Starting to like KiXtart
   
Registered: 2003-10-31
Posts: 184
Loc: Ohio
|
Our company has a unique setup in which we have our own domain with user ID's and passwords and then a "parent" company domain (no trust relationship) that has it's own set of users and passwords. Long story short the User ID's are the same on each side and both sides passwords expire after 90 days.
On our side you get your normal "Your password will expire in xx days" prompt and users can just change it. To change the other domain password we go to a website. Problem is a lot of users "forget" as they don't use the other system every day then their accounts get locked out. I would like to prompt the user and ask them if they'd like to visit the password reset site on login.
So I was going to use something simple like this:
If (@MAXPWAGE-@PWAGE)=90 $MessageResponse=MessageBox("It appears you have just changed your password. Would you like to visit the xxxxx site to change your xxxxx password also?","Password Change Detected",4132,0) If $MessageResponse=6 Run "%comspec% /c start https://password.xxxxxxx.com/" EndIf EndIf
Problem is I don't want to "repeat" this prompt if they reboot that day or login early the next day. I found some VB script code that will let me detect down to a minute range how old the current password is but I'm not sure how to implement that (it's attached).
Is there a easy way to "track" that I prompted for this? Woudl the easiest way be to store variable with the date in the registry then compare both the password age and make sure the date in the registry doesn't match or is there a way I can get the exact password age down to the minute/second?
-Allan
Attachments
PasswordAge.txt (341 downloads) Description: Password Age VB Script. Rename from .txt to .vbs to run.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 793 anonymous users online.
|
|
|