title: Enable Auto-start property in IIS 8 application pool for multiple servers
body: <p>I want to enable auto-start and start mode property in IIS 8 application pool for multiple servers from power shell script . I have created a script which works for single server . see below:-</p>
  
  <pre><code>Import-Module WebAdministration
  cd IIS:/AppPools
  $ApplicationPools = dir
  foreach ($item in $ApplicationPools)
  {
   $ApplicationPoolName = $item.Name
   $pool = Get-Item $ApplicationPoolName
   $pool.autoStart = 'false'
   $pool.startmode = 'ondemand'
   $pool | Set-Item
  }
  </code></pre>
  
  <p>Can someone help me with multiple servers editing.All my servers are in domain.</p>