I have now moved on to automating IDRAC. My script below will look at a list of servernames and IDRAC IP's. I would like to have a user enter a single Servername "S0000A01PX' or whatever and have it search in a master list for the server IDRAC IP. Right now, the script as it is opens every server's virtual console in the list. I just need it to select only the user entry. How do I have this search the file, find the IP next to the user entered servername, and open only the IDRAC for that servername?

example of what's in the CSV

```
computername    iPiDRAC
S0000A01PX  10.122.2.11

```

Script

```psh
$machinename = ""
$file = Import-Csv 'c:\temp\powershell\Branch Server IDRAC.csv'
$filelength = $file.length
$machine = Read-Host 'What is your Server?'
foreach ($line in $file){
    $DRACip = $line.iPiDRAC
    $DRACpw=cscript c:\PassGen1.vbs $machinename
    $DRACpw=$DRACpw[3]
    $DRACip
    $machinename
    $DRACPW
    $openIDRAC="http://"+$DRACip+"/console"
    $openIDRAC
    start $openIDRAC
    write-host "----------"
}

```