title: Powershell: Cannot convert 'System.Object[]' to the type 'System.String'
body: <p>When I run the following code i receive the message "cannot convert 'System.Object[]' to the type 'System.String'".  How do i pass the event log list back to get-eventlog?  </p>
  
  <pre><code>$EventLogList = Get-EventLog | Select-Object -ExpandProperty log
  Get-evenlog -log $eventloglist
  </code></pre>
  
  <blockquote>
    <p>Get-EventLog : Cannot convert 'System.Object[]' to the type
    'System.String' required by parameter 'LogName'.</p>
  </blockquote>
  
  <p>your help is appreciated </p>