none
Why does the ValidateCredentials() method returns false when run on Winodows 2008 R2 and returns true on Windows 2012 R2.

    Question

  • Hi,

    When we try to execute powershell to verify credentials using ValidateCredentials($username, $password) method (i.e. from System.DirectoryServices.AccountManagement) on Windows 2008 R2 machine it returns as "False" when the "User must change password at next logon" is kept as checked.

    When we try to execute powershell to verify credentials using ValidateCredentials($username, $password) method (i.e. from System.DirectoryServices.AccountManagement) on Windows 2012 R2 machine it returns as "True" when the "User must change password at next logon" is kept as checked.

    Need to know why the method is returning as False on Windows 2008 R2.


    • Edited by Anant279 Tuesday, February 28, 2017 1:56 PM
    Tuesday, February 28, 2017 1:56 PM

Answers

All replies