I am trying to find a powershell script to disable 500 exchange accounts from an excel sheet. I need to use the following
Set-Mailbox -Identity test -HiddenFromAddressListsEnabled $true
and
Set-CASMailbox -Identity test -MAPIEnabled $false -OWAEnabled $false -ActiveSyncEnabled $false -PopEnabled $false -IMAPEnabled $false
Any help will be appreciated.
Thanks