Skip to main content

Hyper-V - Guest VMs - StartStop

Summary

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

Time Saved by Automation: 5 Minutes

Sample Run

Sample Run Image 1

Sample Run Image 2

Dependencies

Toggle-VMGuests

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.