tpath = "$env:SystemRoot\system32\inetsrv\microsoft.web.administration.dll"; add-type -Path $tpath; $sm = new-object Mic ...

$tpath = "$env:SystemRoot\system32\inetsrv\microsoft.web.administration.dll";          add-type -Path $tpath;          $sm = new-object Microsoft.Web.Administration.ServerManager;          if ($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();          }