Name 4a_Shutdown Hyper-V
Description Shutdown complete Hyper-V environment
MainExecutionBlock
Name '4a_Shutdown Hyper-V' Main Execution Block
Description This is the main execution Block, which defines the Tasks to be executed when the job is run.
Execution Type Serial
Pass up True
Continue execution True
Assignment 1 ExecutionBlock
Order 1
Disabled False
Type ExecutionBlock
Name HYPER-V Step1
Description Shutdown VMs
Execution Type Parallel
Parallel execution limit 0
Pass up True
Continue execution True
Cancel parallel running tasks or blocks False
Assignment 1 Task
Order 1
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.HyperV
Host type HyperVCluster
Task type ShutdownVms
Host
Name TS-HVCL01
Description HyperV Cluster IP
General
Name ShutdownVms on TS-HVCL01
Description
Error Handling
Pass up True
Task settings
Total timeout 600
Number of VMs to shutdown in parallel 8
Include configured VMs False
Force power off False
Timeout per VM 120
Force power off after timeout period True
Save shutdown VMs to list var_HYPERV-Cluster_vms
Clear list of shutdown VMs True
Assignment 2 ExecutionBlock
Order 2
Disabled False
Type ExecutionBlock
Name Shutdown VMs explizit
Description Shutdown explicit VMs (due to sequence)
Execution Type Serial
Pass up True
Continue execution True
Assignment 1 Task
Order 1
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.HyperV
Host type HyperVClusterVm
Task type Shutdown
Host
Name TS-DC21HV
Description automatically created vm. Hosted on TS-HVCL01 Id: {"type":0,"vmId":"f10803d4-946d-49c0-8cdd-18ed48e0fa59","vmName":"TS-DC21HV","vmGroupId":"00000000-0000-0000-0000-000000000000","vmGroupName":null}
General
Name Shutdown on TS-DC21HV
Description DomainController
Error Handling
Pass up True
Task settings
Force power off False
Timeout 120
Force power off after timeout period True
Assignment 3 ExecutionBlock
Order 3
Disabled False
Type ExecutionBlock
Name HYPER-V Step2
Description Stop Cluster and Shutdown HyperV Hosts
Execution Type Serial
Pass up True
Continue execution True
Assignment 1 Task
Order 1
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.HyperV
Host type HyperVClusterNode
Task type StopCluster
Host
Name TS-HYPERV01
Description Hyper-V Host WS2025
General
Name StopCluster on TS-HYPERV01
Description
Error Handling
Pass up True
Task settings
Force True
Assignment 2 Task
Order 2
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.PowerShell
Host type PowerShell
Task type Shutdown
Host Group
Name HyperV-Gruppe-01
Description Hostgruppe TS-HYPERV01, TS-HYPERV02
General
Name Shutdown on HyperV-Gruppe-01
Description
Execution Type Parallel
Parallel execution limit 0
Error Handling
Pass up True
Continue execution True
Cancel parallel running tasks or blocks False
Task settings
Assignment 3 Task
Order 3
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.CommonTasks
Host type BasicIpHost
Task type Ping
Host Group
Name HyperV-Gruppe-01
Description Host group TS-HYPERV01, TS-HYPERV02
General
Name Ping on HyperV-Gruppe-01
Description
Execution Type Parallel
Parallel execution limit 0
Error Handling
Pass up True
Continue execution False
Cancel parallel running tasks or blocks False
Task settings
Wait until host is reachable False
Required successful results 3
Total Timeout 600
Delay between tries 1000
Ping Timeout 15
TTL 128
Dont fragment False
Assignment 4 ExecutionBlock
Order 4
Disabled False
Type ExecutionBlock
Name SAN und NAS systems
Description
Execution Type Parallel
Parallel execution limit 0
Pass up True
Continue execution True
Cancel parallel running tasks or blocks False
Assignment 1 Task
Order 1
Disabled False
Type Task
Module BnIts.VmShutdownManager.Modules.PowerShell
Host type PowerShell
Task type Shutdown
Host
Name TS-HVSAN01
Description Windows iSCSI SAN for Hyper-V
General
Name Shutdown on TS-HVSAN01
Description
Error Handling
Pass up True
Task settings