windows - How to check if a local user account still have the same password -


i have powershell script following on windows 7 computers:

  • get random password secure server-side application
  • reset password of specific local user account using password value

as next step, want periodically check if password saved on server still valid. now, using validatecredentials system.directoryservices.accountmanagement.principalcontext (see powershell check local admin credentials) involves unencrypt password , send computer purpose.

do see better way check if password still valid avoiding use clear text password ? possible compare hash, or else ?

regards.

you can check attribute passwordage , little math see if last time password changed time set password.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -