if (![string]::IsNullorEmpty($RolePreferredServer)) { Write-ExchangeSetupLog -Info ("Setting Domain Controller to use for ...

if (![string]::IsNullorEmpty($RolePreferredServer))        {            Write-ExchangeSetupLog -Info ("Setting Domain Controller to use for add-secondarydomain: " + $RolePreferredServer);            Set-ADServerSettings -PreferredServer $RolePreferredServer;        }        $domain = $null;        if($RoleDomainType -eq $null)        {            $domain = new-accepteddomain -organization $RolePrimaryOrganization -name $RoleSecondaryDomainName -domainname $RoleSecondarySmtpDomainName -AuthenticationType $RoleAuthenticationType -LiveIdInstanceType $RoleLiveIdInstanceType -OutBoundOnly $RoleOutBoundOnly;        }        else        {            $domain = new-accepteddomain -organization $RolePrimaryOrganization -name $RoleSecondaryDomainName -domainname $RoleSecondarySmtpDomainName -AuthenticationType $RoleAuthenticationType -LiveIdInstanceType $RoleLiveIdInstanceType -DomainType $RoleDomainType -OutBoundOnly $RoleOutBoundOnly;        }        if($RoleMakeDefault -ne $null -and $RoleMakeDefault -eq $true)        {            set-accepteddomain $domain.Identity -MakeDefault $true;        }
English
English (United States)
italiano
Italian