Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: nested tables removal

Anchor
TOC
TOC
Include Page
KBCOMMON:KB-CSSstyle
KBCOMMON:KB-CSSstyle

...

Invoke the script from the Powershell PowerShell command window, specify the configuration file and – optionally – if you want to run the script in "check" mode.

...

Info

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

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

or the Powershell PowerShell "get-help" command:

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


(lightbulb) To automatically restart the guest operating system running on the CHARON instance, the automatic boot on restart has to be set at SRM level and the following Windows service command must be executed:

...

Note on CHARON instance service:

The 'expectopa0' mode will perform the "power off" command itself or will send the "F6" key if this command is not available, thus stopping the service. The other modes will perform a clean shutdown without powering off the CHARON instance, thus leaving the service active and the instance at the SRM prompt. To recognize the completion of the shutdown process in this case, a loop has been introduced to check if the guest operating system running on the instance responds to "ping". Once it no longer responds, the script waits for a specified amount of time (waitbeforestop parameter) before stopping the service.

...

C:\Users\Administrator> powershell -file c:\charon\charon_cleanshutdown.ps1 ^
More? -config c:\charon\myds20vms.ini-check

...