Script to find Snapshots\RMDS\ISOs in VSphere

Script to get snapshots , RDMS, ISOs in vCenter

Within 5.5 where machines are going to be migrated from

Want to do a check on source VMs to make sure they don't have any local devices attached to them, whats best way to tabulate this list?

I also want to check snapshots, which i have completed using RVtools and script below

get-vm | get-snapshot | FT VM, SizeGB, Created, Name, Description (The figures tally up there is only 3 vms with snapshots)

Is there a best way to get list of RMDs, ISOs, from vCenter or through a script?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
To Find RDM  check article. -

I understand ISO could be trouble  when you want to detach those. check the below script to find VM.

Get-VM | FT Name, @{Label="ISO file"; Expression = { ($_ | Get-CDDrive).ISOPath }}

Dismount ISO by below command.

Get-VM | Get-CDDrive | where {$_.IsoPath -ne $null} | Set-CDDrive -NoMedia -Confirm:$False

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Indie101Author Commented:
Couldnt export it to csv so referenced which worked fine

Get-VM | where {($_ | Get-CDDrive).ISOPath -ne $null}  | select Name, @{Label="ISO file"; Expression = { ($_ | Get-CDDrive).ISOPath }} | export-csv c:\temp\export-iso.csv -NoTypeInformation -UseCulture
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.