title: Powershell list of websites using get-website?
body: <p>I'm having some troubles with a basic powershell command.</p>
  
  <p>If i run get-website (after enabling the webadministration snappin) and running "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -ImportSystemModules", I see a list of the 10 or so websites on my IIS 7.0 server on Server 2008 Standard (SP2, not R2). It works as expected by listing these items:</p>
  
  <ul>
  <li>name</li>
  <li>ID</li>
  <li>State</li>
  <li>Physical Path</li>
  <li>Bindings</li>
  </ul>
  
  <p>But when I do:</p>
  
  <p>get-website | export-csv C:\my_list.csv</p>
  
  <p>I get many more items with "Microsoft.IIs.PowerShell.Framework.ConfigurationElement" instead of the actual value.</p>
  
  <p>When it's exported to CSV it also says "Microsoft.IIs.PowerShell.Framework.ConfigurationElement" for bindings when it didn't prior (when the output was in the shell).</p>
  
  <p>It's sort of halfway there...</p>
  
  <p>Is there a way I can modify the one-liner so I can have a list of websites with all details without "Microsoft.IIs.PowerShell.Framework.ConfigurationElement" ?</p>