VMware Cloud Community
vcptobe
Enthusiast
Enthusiast

Powercli script to find vms with snapshots and ISOs

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

0 Kudos
6 Replies
vcptobe
Enthusiast
Enthusiast

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

0 Kudos
Wonlliv
Enthusiast
Enthusiast

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/

pastedImage_1.png

Best regards

www.hyper-converged.com
0 Kudos
vcptobe
Enthusiast
Enthusiast

Thanks using RVtools I can see snapshots, can I get isos and RDMS from that as well

0 Kudos
Aviator20111014
Enthusiast
Enthusiast

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

0 Kudos
msripada
Virtuoso
Virtuoso

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

mechgt
Enthusiast
Enthusiast

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?

pastedImage_2.png

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

0 Kudos