Public/Configuration/Add-ExternalWarningInOutlook.ps1
function Add-ExternalWarningInOutlook { param( [Parameter(Mandatory)] [string]$TenantId ) try { Connect-CustomerExchange -CustomerTenantId $TenantId Set-ExternalInOutlook -Enabled $true Write-ModuleLog -Message "External warning in outlook enabled." -Level Info -Component 'Add-ExternalWarningInOutlook' } catch { throw $_ } } |