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