1 Reply Latest reply on Dec 10, 2010 7:45 AM by peter79

    Finding all VM's with connected CD-ROM's

    peter79 Enthusiast



      I want to generate a report which will find any VM's which have any attached CD-ROM devices.  I have created the following script


      Get-VM | where{$_.ConnectionState -eq "True"} | Select Name | Export-Csv "C:\HealthCheck\SJDC\SJDC-ConnetedCD.csv" -NoTypeInformation


      It generates the CSV file all right but its always empty.  I made sure one of my VM's had an ISO image mounted and tried the script again, same result.  Anyone know where I'm going wrong?