February 2019
Beginner to intermediate
542 pages
10h 34m
English
This report gathers information about a Hyper-V server and the VMs running on that server.
You run this recipe on the HV1 Hyper-V host.
$ReportHT = [Ordered] @{}$HostDetails = Get-CimInstance -ClassName Win32_ComputerSystem $ReportHT.HostName = $HostDetails.Name $ReportHT.Maker = $HostDetails.Manufacturer $ReportHT.Model = $HostDetails.Model
$ReportHT.PSVersion = $PSVersionTable.PSVersion.ToString()
$OS = Get-CimInstance -Class Win32_OperatingSystem $ReportHT.OSEdition = $OS.Caption ...