Skip to content

Instantly share code, notes, and snippets.

View HiteaFR's full-sized avatar
💪
Focusing

Hitéa HiteaFR

💪
Focusing
View GitHub Profile
@jdhitsolutions
jdhitsolutions / New-HVHealthReport.ps1
Last active September 26, 2023 19:42
A PowerShell control script to create a heath report on a Hyper-V server and its virtual machines.
#requires -version 5.1
<#
.SYNOPSIS
Create an HTML Hyper-V health report.
.DESCRIPTION
This command will create an HTML-based Hyper-V health report. It is designed to report on Hyper-V 3.0 or later servers or even Client Hyper-V on Windows 10. This script will retrieve data using PowerShell remoting from the Hyper-V Host. It is assumed you will run this from your desktop and specify a remote Hyper-V host. You do not need any Hyper-V tools installed locally to run this script.
The report only shows virtual machine information for any virtual machine that is not powered off. If you include performance counters, you will only get data on counters with a value other than 0.