Link to home
Start Free TrialLog in
Avatar of Indie101
Indie101

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of Ajay Chanana
Ajay Chanana
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Indie101
Indie101

ASKER

Couldnt export it to csv so referenced https://communities-gbot.vmware.com/thread/572030 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