Tag Archives: Exchange
Replacing TMG with IIS ARR for an Exchange Hybrid
The Exchange Team Blog have a three part article on how to set it up and install it
Part 1 , Part 2 , Part 3
- /ews/mrsproxy.svc
- /ews/exchange.asmx/wssecurity
- /autodiscover/autodiscover.svc/wssecurity
- /autodiscover/autodiscover.svc
Orphaned Exchange Online External Contacts preventing users account to sync to Exchange Online.
I recently had a problem with an Exchange Online tenant. There was an external mail contact which was previously synchronised from Active Directory to Exchange Online. So I had deleted the on-premise active directory mail contact but it still existed in Exchange Online. When I tried to delete the contact it gave the following errror message.
The action ‘Remove-MailContact’, ‘Identity’, can’t be performed on the object ‘Sean OFarrell ‘ because the object is being synchronized from your on-premises organization. This action should be performed on the object in your on-premises organization.
To trouble shoot this issue you can do a couple of things to ensure the external contact does not exist in your on premise Active Directory.
- Perform a custom search in ADUC: Search Syntax : proxyaddresses=SMTP:sean.ofarrell@contoso.com
- Search the WAAD Mettaverse
- Run this command on the Exchange Onpremise management shell
remove-mailcontact sean.ofarrell@contoso.com
- In Exchange Online Run this command : get-mailcontact sean.ofarrell@contos.com | fl
- Take note of the attribute value: ExternalDirectoryObjectId
- In this example the externaldirectoryobjectid is 2cb3d9c7-cb29-439f-8174-6c80dd9fe6e8
- Then connect to Windows Azure Ad via Powershell and run this command
get-msolcontact -objectid 2cb3d9c7-cb29-439f-8174-6c80dd9fe6e8 | remove-msolcontact
Exchange Online Distribution Group Delivery Management
I recently carried out a large migration and my customer had 700 Distribution Groups. My customer asked me to restrict delivery of emails to the groups by members only. So end users could not email the distribution group unless they were a member.
So how do I do this for 700 users!! Powershell to the rescue.
Connect to Exchange Online via Powershell and run this command.
- Get-Distributiongroup | export-csv C:\users\disti.csv
- I then deleted all columns in the csv except for PrimarySmtpAddress and then renamed that column to distiname.
- Then run this command
Import-Csv “C:\Users\sofarrell\Desktop\disti.csv” | Foreach-Object{get-distributiongroup $_.distiName | Set-distributiongroup -AcceptMessagesOnlyFromDLMembers $_.distiname} - And then run this command
Import-Csv “C:\Users\sofarrell\Desktop\disti.csv” | Foreach-Object{get-distributiongroup $_.distiName | Set-distributiongroup -AcceptMessagesOnlyFromSendersOrMembers $_.distiname}
Exchange Online Mailbox only has 25gb Storage Quota








