Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

VM file list

$
0
0

Hi all,

I try to build a list of all files  Hyper-V VMs in a cluster consists of.
The begining is relativ easy:
------
$nodes = Get-ClusterNode

$ActiveDiskFiles = Foreach($node in $nodes) 

    $VMs=Get-VM -ComputerName $node.name 
    foreach($VM in $VMs ) 
    { 
        Get-VHD -ComputerName $node.Name -VMId $VM.VMId | Select-Object path 
    }

}
foreach ($disks in $ActiveDiskFiles)
{Write-Host $disks}
----------

But how can I get the parent checkpoint-files and or VHDs with filename and path?

Hyper-V is Version 2012 R2 and I do not have a SC-VMM

Many thanks in advance.


Guido




Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>