if ($RoleIsDatacenterDedicated) { # Configure CertPrincipalName to make one box topology work (this is global configuration ...

if ($RoleIsDatacenterDedicated)          {            # Configure CertPrincipalName to make one box topology work (this is global configuration that lives in AD)            Write-ExchangeSetupLog -Info "CAS: Setting Outlook Provider properties for ID:EXPR, CertPrincipalName: $RoleDatacenterPrimaryCertPrincipalName"            $outlookProviderExpr = get-OutlookProvider | where { $_.Name -eq 'EXPR' }            if ([string]::IsNullOrEmpty($outlookProviderExpr.CertPrincipalName))            {                set-OutlookProvider EXPR -DomainController $RoleDomainController -CertPrincipalName:"msstd:$RoleDatacenterPrimaryCertPrincipalName"            }            elseif ($outlookProviderExpr.CertPrincipalName -ne "msstd:$RoleDatacenterPrimaryCertPrincipalName")            {                throw "PrimaryCertPrincipalName does not match CertPrincipalName in EXPR Outlook Provider.";            }          }          else          {            set-OutlookProvider EXPR -DomainController $RoleDomainController -OutlookProviderFlags:ServerExclusiveConnect -CertPrincipalName:"msstd:$RoleDatacenterOutlookProviderCertPrincipalName"          }
English
English (United States)
Deutsch (Deutschland)
German (Germany)
Español (España)
Spanish (Spain)
Français (France)
French (France)
italiano
Italian
Português
Portuguese
Русский
Russian