Skip to main content

Restart-HyperVHost

Overview

This script uses the Agnostic script Restart-HyperVHost to restarts a Windows Hyper-V host, ensuring that the running state of all hosted virtual machines (VMs) is preserved. It is designed for environments where VM state preservation is critical during maintenance, patching, or updates, and where live migration to another host is not available or desired.

Sample Run

Play Button > Run Automation > Script
SampleRun1

Dependencies

Automation Setup/Import

Automation Configuration

Output

  • Activity Details

Changelog

2026-08-06

  • Initial version of the document