I'd like to enumerate domain accounts and try authenticating as each with a limited set of passwords.
The issue is that I can't find any way to attempt to validate credentials without "doing" something (e.g. querying wmi with impersonation) which isn't useful as the account may or may not have the ability to connect via wmi in the first place.
Is there a way this can be done in "pure" powershell?
Or is there a .Net library I could use?
Extra info: I'm not looking to brute force accounts, it's mostly to find things like service accounts that haven't had their passwords changed. I do however need to know if it's using a weak or "known" password, not just that it hasn't been changed recently.