tpath = "$env:SystemRoot\system32\inetsrv\microsoft.web.administration.dll"; Fügen Sie Typ-Pfad $tpath; $sm = neues Objekt ...

$tpath = "$env:SystemRoot\system32\inetsrv\microsoft.web.administration.dll";          Fügen Sie Typ-Pfad $tpath;          $sm = neues Objekt Microsoft.Web.Administration.ServerManager;          Wenn ($sm.Seiten ["Exchange Back-End"] - Eq $null)          {            $backEndWebSitePath = [System.IO.Path]::Combine ($RoleInstallPath, "An");            $s = $sm.Sites.Add ("Exchange Back-End", "http", "*: 81:", $backEndWebSitePath);            $s.ServerAutoStart = $true;            $sb = $s.Bindings;            $b = $sb.Add("*:444:","https");            $sm.CommitChanges();          }          Installation-ExchangeCertificate - WebSiteName "Exchange-Back-End"-"IIS" - DomainController $RoleDomainController services - InstallInTrustedRootCAIfSelfSigned $true