Si ($RoleExternalCASServerDomain - ne $null) { $ExternalAutoDiscoverUrl = "https://" + $RoleExternalCASServerDomain + "/ ...

Si ($RoleExternalCASServerDomain - ne $null)          {            $ExternalAutoDiscoverUrl = "https://" + $RoleExternalCASServerDomain + "/ autodiscover/autodiscover.svc" ;            $FEVdirIdentity = $RoleNetBIOSName + "\Autodiscover (default Web Site)" ;            Get-AutodiscoverVirtualDirectory-Identity $FEVdirIdentity - DomainController $RoleDomainController | Set-AutodiscoverVirtualDirectory - ExternalUrl $ExternalAutoDiscoverUrl ;          }