It is recommended to execute the script interactively first using the check mode:
Example:
|
then to use it at your convenience from any utility (scheduler, backup agent, ...) to shutdown the virtual machine.
Example:
C:\Users\Administrator> powershell -file c:\charon\charon_vmshutdown.ps1 -config c:\charon\myds20vms.ini |