...
The kit contains the following files:
File | Description |
---|---|
charon_cleanshutdown.ps1 | PowerShell main script |
rsh.exe | Used if 'rsh' mode is selected |
template.ini | Used to facilitate the creation of a customized configuration file for the CHARON instance |
psexec.exe | Taken from Microsoft Sysinternals and used in case of integration to Windows shutdown |
Shutdown command
Depending on the guest operating system running on the CHARON instance, the following commands are executed to perform a clean shutdown:
Tru64 |
|
---|---|
OpenVMS |
|
Requirements
PowerShell V5.1 or newer version is required.
...
To do so, open a command line window (cmd.exe) as an Administrator and use the following command:
Code Block | ||
---|---|---|
| ||
c:\ |
...
Charon>powershell -command "Set-ExecutionPolicy Unrestricted" |
The ExecutionPolicy can also be set to "RemoteSigned
". In this case the .ps1
script files will have to be unblocked as described below.
If you are still prompted to allow for execution of the script, please run the following command to unblock the downloaded charon_cleanshutdown.ps1
file:
Code Block | ||
---|---|---|
| ||
c:\Charon>powershell -command "Unblock-File -path c:\charon\charon_cleanshutdown.ps1" |
TEST TEST TEST
c:\Charon>powershell -command "Unblock-File -path c:\charon\ |
...