It is recommended to execute the script interactively first using the check mode:. Using this mode only connection and remote commands doing simple display will be executed, no shutdown will be performed.
Example:
C:\Users\Administrator> powershell -file c:\charon\charon_vmshutdown.ps1 -config c:\charon\myds20vms.ini -check
|
Use the script 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 |