when i change active directory user password from Microsoft AD Users and trying to verify the credentials from Power shell script .
The problem is for some time it shows TRUE for old password and new password both then after sometime it started showing false for the old one.
No idea where it is caching.
The below command using for credentials verification but also i tried all commands available on google same result.
$ct = [System.DirectoryServices.AccountManagement.ContextType]::Domain
$pc = New-Object System.DirectoryServices.AccountManagement.PrincipalContext($ct, "xxxxx")
$pc.ValidateCredentials("xxxx\myemail.abc", 12345).ToString()