PowerCLI

 View Only
  • 1.  Powercli script to find vms with snapshots and ISOs

    Posted Mar 26, 2018 08:16 AM

    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



  • 2.  RE: Powercli script to find vms with snapshots and ISOs

    Posted Mar 26, 2018 08:44 AM

    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



  • 3.  RE: Powercli script to find vms with snapshots and ISOs

    Posted Mar 26, 2018 09:26 AM

    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



  • 4.  RE: Powercli script to find vms with snapshots and ISOs

    Posted Mar 26, 2018 09:33 AM

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



  • 5.  RE: Powercli script to find vms with snapshots and ISOs

    Posted Mar 26, 2018 12:31 PM

    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



  • 6.  RE: Powercli script to find vms with snapshots and ISOs

    Posted Mar 26, 2018 01:59 PM

    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



  • 7.  RE: Powercli script to find vms with snapshots and ISOs

    Posted Dec 29, 2019 09:00 AM

    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