BEVdirIdentity = $RoleNetBIOSName + "\EWS (Exchange Back-End);" $BackEndPort = ": 444"; $urlToUse = "https://" + $RoleFqdnOrName ...

$BEVdirIdentity = $RoleNetBIOSName + "\EWS (Exchange Back-End);"          $BackEndPort = ": 444";          $urlToUse = "https://" + $RoleFqdnOrName + "/ ews/exchange.asmx";          Get-WebServicesVirtualDirectory - ShowMailboxVirtualDirectories-identidade $BEVdirIdentity - DomainController $RoleDomainController | Remover WebServicesVirtualDirectory - DomainController $RoleDomainController;          novo WebServicesVirtualDirectory-função caixa de correio - NomedoSite "Exchange Back-End" - windowsAuthentication: $true - WSSecurityAuthentication: $true - BasicAuthentication: $false - InternalNLBBypassUrl $urlToUse - DomainController $RoleDomainController-Force - GzipLevel alto;