VMware Cloud Community
bevansware
Contributor
Contributor
Jump to solution

SQL query or tool to find vms that have CD rom connected?

Whats a good way to find all vms that have the host cd drive or datastore ISO file connected?

0 Kudos
1 Solution

Accepted Solutions
jayolsen
Expert
Expert
Jump to solution

RV tools will also work.

View solution in original post

0 Kudos
3 Replies
JoeLyons
Enthusiast
Enthusiast
Jump to solution

Hi,

Install Powershell and the vi toolkit,

then run this

Add-PSsnapin VMware.VimAutomation.Core

Get-vm | where { $_ | get-cddrive | where { $_.ConnectionState.Connected -eq "true" } }

Joe

Remember to back EVERYTHING up before you change ANYTHING

Remember to back EVERYTHING up before you change ANYTHING and consider awarding points if answers where helpful to you.
jayolsen
Expert
Expert
Jump to solution

RV tools will also work.

0 Kudos
bevansware
Contributor
Contributor
Jump to solution

I installed the RVTools, very cool tool. That makes it easy, thank you.

Also, thanks for the powershell idea, Im not familiar with the VI toolkit, im going to check that out too.

Cheers guys.

0 Kudos