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

$BEVdirIdentity = $RoleNetBIOSName + "\EWS (Exchange Back-End)";          $BackEndPort = ": 444";          $urlToUse = "https://" + $RoleFqdnOrName + "/ / Exchange. asmx";          Get-WebServicesVirtualDirectory - ShowMailboxVirtualDirectories-$BEVdirIdentity identità - DomainController $RoleDomainController | Rimuovi-WebServicesVirtualDirectory - DomainController $RoleDomainController;          nuovo-WebServicesVirtualDirectory-ruolo cassetta postale - WebSiteName "Exchange Back-End" - windowsAuthentication: $true - WSSecurityAuthentication: $true - BasicAuthentication: $urlToUse $false - InternalNLBBypassUrl - DomainController $RoleDomainController-forzare - GzipLevel alta;