title: Microsoft.Web.Administration.ServerManager is connecting to the IIS Express instead of full IIS
body: <p>I'm using this to create an instance of <code>ServerManager</code>:</p>
  
  <pre><code>[Void][Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Administration")
  $serverManager = New-Object Microsoft.Web.Administration.ServerManager
  </code></pre>
  
  <p>When running <code>$serverManager.ApplicationPools | Select -Property Name</code> I get:</p>
  
  <pre><code>Name
  ----
  Clr4IntegratedAppPool
  Clr4ClassicAppPool
  Clr2IntegratedAppPool
  Clr2ClassicAppPool
  UnmanagedClassicAppPool
  </code></pre>
  
  <p>When running <code>$serverManager.Sites | Select -Property Bindings</code> I get:</p>
  
  <pre><code>Bindings
  --------
  {[http] :8080:localhost}
  {[http] *:23700:localhost}
  {[http] *:58996:localhost}
  {[http] *:62159:localhost}
  {[http] *:51643:localhost}
  {[http] *:64256:localhost}
  {[http] *:50934:localhost}
  {[http] *:53107:localhost}
  {[http] *:49414:localhost}
  {[http] *:59074:localhost}
  {[http] *:61886:localhost}
  {[http] *:57546:localhost}
  {[http] *:63087:localhost}
  {[http] *:63838:localhost}
  {[http] *:63727:localhost}
  {[http] *:60172:localhost}
  </code></pre>
  
  <p>So it seems to be connecting to IIS Express instead of my full IIS. How can I make it connect to full IIS instead? The <a href="http://msdn.microsoft.com/en-us/library/microsoft.web.administration.servermanager.aspx" rel="nofollow">documentation</a> doesn't list any overloads accepting parameters, at least none intended for public use.</p>