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

$tpath = "$env:SystemRoot\system32\inetsrv\microsoft.web.administration.dll";          Aggiungi tipo-percorso $tpath;          $sm = Microsoft.Web.Administration.ServerManager del nuovo oggetto;          Se ($sm.Siti ["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();          }