I am writing a script that pulls various information from VM's in Hyper-V Clusters.
One thing I am doing is the following:
$VMHDD = Get-VMHardDiskDrive -VMName $Using:VM.Name
Which I then write-host using:
"HDD Path: " + $VMHDD.Path
Problem is it shows multiple paths on a single line, instead of multiple lines.
I can't figure out why, and hope someone can explain if it can be done, and if so, how.
I have the same thing for VMs with multiple network adapters and VLAN IDs.