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:

To Start the VMs:

Dependencies
Variables
User Parameters
| Name | Example | Required | Description |
|---|---|---|---|
| Action | Start | True | This 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