tpath = "$env:SystemRoot\system32\inetsrv\microsoft.web.administration.dll"; Adicionar tipo-caminho $tpath; $sm = Micros ...

$tpath = "$env:SystemRoot\system32\inetsrv\microsoft.web.administration.dll";          Adicionar tipo-caminho $tpath;          $sm = Microsoft.Web.Administration.ServerManager do novo objeto;          Se ($sm.Sites ["Exchange Back-End"] - eq $null)          {            $backEndWebSitePath = [System.IO.Path]::Combine ($RoleInstallPath, "ClientAccess");            $s = $sm.Sites.Add ("Exchange Back-End", "http", "*: 81:", $backEndWebSitePath);            $s.ServerAutoStart = $true;            $sb = $s.Bindings;            $b = $sb.Add("*:444:","https");            $sm.CommitChanges();          }          Instalação-ExchangeCertificate - NomedoSite "Exchange Back End"-services "IIS" - DomainController $RoleDomainController - InstallInTrustedRootCAIfSelfSigned $true