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

  • Question

  • 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
    }


    Wednesday, January 22, 2014 3:58 AM

Answers

  • I have got what i need so thanks. Wouldnt say i was guessing, just after the right way to get that property into a variable; however you pointed me along the right track

    $UM = Get-Mailbox -identity $Email | Select -Expandproperty UMEnabled


    • Edited by pigd0g Wednesday, January 22, 2014 9:54 PM typo!
    • Marked as answer by pigd0g Wednesday, January 22, 2014 9:55 PM
    Wednesday, January 22, 2014 9:53 PM

All replies