Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Powershell how to use if sats to check say if users are enabled do so....

$
0
0

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


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>