Connect to Exchange Online PowerShell
Exchange Online PowerShell Modunle
You need install Exchange Online module only once. In the next time, run to connect to Exchange Online PowerShell.
##Connect to Exchange Online Powershell.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine -Force;
Install-PackageProvider -Name NuGet -Force;
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted;
Install-Module -Name ExchangeOnlineManagement;
Import-Module ExchangeOnlineManagement;
Connect-ExchangeOnline;
Enable external tagging
Enable the external tagging in Exchange Online
Set-ExternalInOutlook -Enabled $true
You can verify the settings with the following cmdlet
Get-ExternalInOutlook
# Result:
RunspaceId : 4b07eecc-34c5-4add-8ee4-80d25aa4aff4
Identity : 11e55098-68ad-4992-aaf8-c5fdceb3b6da
Enabled : True # < External tagging enabled
AllowList : {}
📢
It can take up to 48 hours before the external tag will show up in Outlook. Only new emails will get tagged after you enabled the feature, existing emails won’t.
Add domains to allow list (optional)
It’s possible to exclude domains from the external tag. This can be useful if your organization has different tenants or work closely with specific partners.
By using the @{add=””} syntax we make sure that any existing domain in the list is preserved. Without it, all existing domains in the AllowList would be removed.
Set-ExternalInOutlook -AllowList @{Add="leoguides.com", "leoguides.me"}
To remove a single, or multiple, domains from the list you can use the following syntax
Set-ExternalInOutlook -AllowList @{Remove="leoguides.com", "leoguides.me"}
5/5 - (1 vote)