← script library

Hyper-V VM Status and Resource Report

Hyper-VJanuary 10, 2025

This PowerShell script generates a detailed report of your Hyper-V virtual machines, including their status and resource usage. It's useful for monitoring and optimizing your Hyper-V environment.

powershell
Import-Module Hyper-V

$vms = Get-VM | Select-Object Name, State, MemoryAssigned, ProcessorCount

$vms | Format-Table -Property Name, State, MemoryAssigned, ProcessorCount

$vms | Export-Csv -Path "C:\HyperV_VM_Report.csv" -NoTypeInformation

Run it across your fleet

This script runs as-is on a single host. Paste it into ServerEngine to schedule it, run it on a whole server group in parallel, and keep the credentials out of the file — see the scripts documentation and the credential store.

Ready when you are.

Try ServerEngine free for 7 days.