title: Powershell, Need to input IP in racadm command
body: <p>I would like to validate a list of DRAC IP's using racadm.  I created a powershell script to go through each IP and the run the racadm to get the sysinfo.  I'm very new to powershell and hoping get some assistance in get a result sent to a csv file with serverName and getsysinfo.</p>
  
  <pre><code>$dracList = import-csv .\currentDracList.csv -header("Server_Name","Ilo_drac_ip")
  $results = @()
  $dracList | % {
  
      $dracIP = $_.Ilo_drac_Ip
  
          $dracProps = @{
              racadm -r $dracIP -u root -p P@ssword! Getsysinfo
              }
      $resultt += New-Object -TypeName psobject -Property $dracProps
  }
  
  $Result | export-csv .\dracResults.csv
  </code></pre>
  
  <p>Currently getting an error:</p>
  
  <pre><code>Missing '=' operator after key in hash literal.
  t line:4 char:22
               racadm -r &lt;&lt;&lt;&lt;  $dracIP -u root -p P@ssword! Getsysinfo
  </code></pre>
  
  <p>I'm able to run the command one at a time, hoping to come up with a good script to run against IP's.</p>
  
  <p>CSV file contains two columns, "Server_Name","Ilo_drac_ip" as mentioned in the script.</p>
  
  <p>Please let me know if any other information is needed.  It would be great to have the Server_Name appear in the results.</p>
  
  <p>Thanks,</p>