I know it's been beaten to death but for some reason I can't find one that fits what I need.
All I want is a powershell script to query a specific OU for user accounts with passwords that will expire in X days.
I don't need to email them, just pipe it to either the screen or a file.
I get so close using all the examples out there but something is missing.
Any help?