r/PowerShell • • Jan 26 '26

Does PrincipalContext.ValidateCredentials Method generate logs ?

As mentionned in the title, I wanted to know if this method does generate logs, and if so where ?

I read that the method creates an LDAP bind connection and I've ran a password spraying script on my domain using it to test detections. The EDR did not trigger any alert and I couldn't find any logs on the DC. Perhaps they are logged locally ?

It would help me to know the answer because this could mean someone could potentially validate credentials without being detected, which I highly doubt is the case.

1 Upvotes

5 comments sorted by