To enable outlook anywhere for a single user:
Get-Mailbox –Identity "username" | Set-CASMailbox -MAPIBlockOutlookRpcHttp:$False
To disable outlook anywhere for a single user:
Get-Mailbox –Identity "username" | Set-CASMailbox -MAPIBlockOutlookRpcHttp:$True
To enable it for all users:
Get-Mailbox –ResultSize Unlimited | Set-CASMailbox -MAPIBlockOutlookRpcHttp:$False
To disable it for all users:
Get-Mailbox –ResultSize Unlimited | Set-CASMailbox -MAPIBlockOutlookRpcHttp:$True
To enable it for multiple users only:
Create text file:
Username1
Username2
etc
- Now save this text file to any locationu. Name it users.txt. For example C:users.txt
$Mailboxes = Get-Content C:users.txt
Foreach ($Mailbox in $Mailboxes)
{
Set-CASMailbox -Identity $Mailbox -MAPIBlockOutlookRpcHttp:$false -Verbose
}
To disable it for multiple users only:
Create text file:
Username1
Username2
etc
- Now save this text file to any locationu. Name it users.txt. For example C:users.txt
$Mailboxes = Get-Content C:users.txt
Foreach ($Mailbox in $Mailboxes)
{
Set-CASMailbox -Identity $Mailbox -MAPIBlockOutlookRpcHttp:$true -Verbose
}
Wrong. This worked in Exchange 2007 or 2010, but Exchange 2013 and higher uses RPC over HTTP for all Outlook client connectivity. So disabling this will break all connectivity via outlook.
ReplyDelete