Skip to main content

Hyper-V - Guest VMs - Start/Stop

Summary

This script allows for the shutdown or startup of VMs on the target Hyper-V host based on previous runs of the script.

Sample Run

To Stop the VMs:
Sample Run Image 1

To Start the VMs:
Sample Run Image 2

Dependencies

Variables

User Parameters

NameExampleRequiredDescription
ActionStartTrueThis parameter determines if the VMs will be started or stopped. Can only be set to Start or Stop.

Process

Please see Toggle-VMGuests for information on how this script processes the VMs.

Output

  • Outputs logs to the script log.
  • Outputs logs to log/data files in the script directory.

Changelog

2026-06-19

  • Updated Automate implementation as per our new standard.

2025-04-10

  • Initial version of the document