Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Usage

Invoke the script from the Powershell command and specify the configuration file and eventually if you run it in "check" mode.

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.

Use the script then it at your convenience from any utility (scheduler, backup agent, ...) to shutdown the virtual machine.

 

To display script help text, please use either this Windows command:

c:\Charon>powershell -file charon_vmshutdown.ps1 -help

or the Powershell "get-help" command:

PS C:\Charon> get-help c:\charon\charon_vmshutdown.ps1 -full

 

(lightbulb) To restart the virtual machine, the automatic boot on restart has to be set at SRM level and the following Windows service command has to be used:

c:\Charon>sc start <servicename>

Examples

Check mode:

C:\Users\Administrator> powershell -file c:\charon\charon_vmshutdown.ps1 -config c:\charon\myds20vms.ini -check

 

Shutdown execution mode:

C:\Users\Administrator> powershell -file c:\charon\charon_vmshutdown.ps1 -config c:\charon\myds20vms.ini
  • No labels