tpath = "$env:SystemRoot\system32\inetsrv\microsoft.web.administration.dll" ; Ajouter-type-chemin d'accès $tpath ; $sm = ...

$tpath = "$env:SystemRoot\system32\inetsrv\microsoft.web.administration.dll" ;          Ajouter-type-chemin d'accès $tpath ;          $sm = Microsoft.Web.Administration.ServerManager nouvel objet ;          Si ($sm.Sites [« Exchange Back-End »] - eq $null)          {            $backEndWebSitePath = [System.IO.Path]::Combine ($RoleInstallPath, « ClientAccess ») ;            $s = $sm.Sites.Add (« Exchange Back-End », de « http », « *: 81: ", $backEndWebSitePath) ;            $s.ServerAutoStart = $true ;            $sb = $s.Bindings ;            $b = $sb.Add("*:444:","https") ;            $sm.CommitChanges() ;          }