Categoria: Exchange Hybrid

Exchange Hybrid

Hybrid Exchange – shared folder

This script help you to add permission (full & sand as) an a shared mailbox in a hybrid exchange configuration.

type this command in you exchange online PS

#######################

#######################

$SharedMailbox = “sharedmailbox@i-ricci.com”

$UserAccount = “usermailbox@i-ricci.com”

#remove full access permissions for the affected user from the shared mailbox

Remove-MailboxPermission $SharedMailbox -User $UserAccount -AccessRights FullAccess

## Add Full Access permissions back on, but make sure you set AutoMapping to FALSE!

Add-MailboxPermission $SharedMailbox -User $UserAccount -AccessRights FullAccess -InheritanceType all -verbose ### -AutoMapping $false

Add-RecipientPermission $SharedMailbox -AccessRights SendAs -Trustee $UserAccount

## shared mailbox

Get-Mailbox $SharedMailbox | Set-Mailbox -MessageCopyForSentAsEnabled $True

Hybrid Exchange – manage certificates

On Premise, to view installed certificate

Get-ExchangeCertificate

On Premise, to link a new certificate in a multiple services:

Enable-ExchangeCertificate -Thumbprint [thumbprint’s new certificate] -Services IMAP,POP,IIS,SMTP

On Premise, to remove the old certificate:

Remove-ExchangeCertificate -Thumbprint [thumbprint’s new certificate]

***

Certificate linked to the office 365 connector

***

On Premise, to link the new certificate to the Office365 send connector:

$cert = Get-ExchangeCertificate -Thumbprint [thumbprint’s new certificate]
$tlscertificatename = “$($cert.Issuer)$($cert.Subject)”
Set-SendConnector “Office 365 send connector” -TlsCertificateName $tlscertificatename

On Premise, to link the new certificate to the Office365 receive connector:

$cert = Get-ExchangeCertificate -Thumbprint [thumbprint’s new certificate]
$tlscertificatename = “$($cert.Issuer)$($cert.Subject)”
Set-ReceiveConnector “[exchangeserver\connector name]” -TlsCertificateName $tlscertificatename

On Premise, to view the new certificate linked to receive connector:

Get-ReceiveConnector |ft identity, TlsCertificateName, TlsDomainCapabilities -TlsCertificateName