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
}