Deactivate RPC over HTTPS for mailboxes

Posted: January 16, 2012 in Exchange 2010, Powershell
Tags: , ,

If you want to block RPC over HTTPS you can use PowerShell to get it done quick:

Get-Mailbox -RecipientType ‘UserMailbox’ | Set-CASMailbox -MAPIBlockOutlookRpcHttp:$True

If you want to limit this to a special database:

Get-Mailbox -ResultSize unlimited -Filter ‘((RecipientTypeDetails -like ”*UserMailbox*”) -and (((Database -eq ”CN=DB_NAME,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=ORGANISATION,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=DOMAIN,DC=COM”))))’ | Set-CASMailbox -MAPIBlockOutlookRpcHttp:$False

You also can run this automatic via task scheduler.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s