Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

If statement to check if exchange 2010 is enabled and then disabling

$
0
0

Hi, I am trying to automate our end user process and need some help disabling unifed messaging for those that have it enabled. I just need help with the $UM varable to get it to return a result that = disabled or enabled

$email = Joe@Contoso.com

$UM = Get-Mailbox -identity $email | ......................

If ($UM -like '*enabled*')
{
 Disable-UMMailbox -Identity $email
}



Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

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