Howdy folks,
Wonder if someone might be able to help me finish a little vbscript i've written.
I basically ask the user for their Windows password and write this into the registry to create an autologon entry (to install a few things unattended and reboot a couple of times in between). This works fine until they enter an incorrect password, then they hit problems. I've added a second prompt so they enter the password twice and it compares them however, this still leaves room for error (ie. Caps Lock or, moreso in the case of laptops, Num Lock) so the password is entered wrongly both times.
What I really want to do is check the password they entered against the Windows one. I'm fairly certain this can't be done directly but would it be possible to try to apply the password in some way, test whether the attempt was successful and act accordingly ?
Thanks in advance for any help you can give
TSSTechie
May The Force Be With You
![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)
Wonder if someone might be able to help me finish a little vbscript i've written.
I basically ask the user for their Windows password and write this into the registry to create an autologon entry (to install a few things unattended and reboot a couple of times in between). This works fine until they enter an incorrect password, then they hit problems. I've added a second prompt so they enter the password twice and it compares them however, this still leaves room for error (ie. Caps Lock or, moreso in the case of laptops, Num Lock) so the password is entered wrongly both times.
What I really want to do is check the password they entered against the Windows one. I'm fairly certain this can't be done directly but would it be possible to try to apply the password in some way, test whether the attempt was successful and act accordingly ?
Thanks in advance for any help you can give
TSSTechie
![[lightsaber] [lightsaber] [lightsaber]](/data/assets/smilies/lightsaber.gif)
![[trooper] [trooper] [trooper]](/data/assets/smilies/trooper.gif)
![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)