Hi powershell expert,
I have a PowerShell script on the server at work that works good but I need to add an if sast into it.
This script checks all those users that are in "Direct reports" if they are about to expire send mail to their manager.
Question: I want to explain in my PowerShell that IF users are disabled do not send an email and IF users in 'direct reports' are enabled send mail or continue
the rest of the script. I don't know how to write like this in PowerShell format