Hi guys, looking for a power cli script to find vms with snapshots, ISOs and RDMs
Doesnt have to be just the one script if there are links to the three that would be great
Using get-vm | get-snapshot | FT VM, SizeGB, Created, Name, Description
Its returning a small number of vms, might just check with RV tools as well
Hi there,
take a look at the RVtools which are for free with a huge number of benefits, including the infos you are looking for.
https://www.robware.net/rvtools/
Best regards
Thanks using RVtools I can see snapshots, can I get isos and RDMS from that as well
Hi.
Use vCD tab to see if a VM has a connected ISO, vDisk probably shows RDMs (I'm not sure since I do not use RDMs).
Cheers
David
find out if a harddisk has snapshots and whethe... |VMware Communities
for iso's mounted on VMs, you can use the below
Get-VM | FT Name, @{Label="ISO file"; Expression = { ($_ | Get-CDDrive).ISOPath }}
Thanks,
MS
I'm not able to find vms with snapshots containing ISOs with the solutions above. I can find one or the other on live VMs, but I need to find old snapshots which are bound to an ISO. How can I do this?
EDIT: Found it via PowerCLI, slight mod to above command:
Get-VM | Get-Snapshot | select VM, Name, @{Label="ISO"; Expression = { ($_ | Get-CDDrive).ISOPath }} | Where-Object {$_.ISO} | ft