Version: 2.11 - Published:
windowsevent
' is added and can be either "none" or any combination of S, W and E. 'S' for Success, 'W' for Warning and 'E' for Error. Default is 'SE' so Success and Error only. Example to create an event for Success+Warning+Error messages: windowsevent=SWE
Shortcut to log file error is trapped (found an issue on Windows 2019 only)
Corrected severity level messages related to encrypted files
cryptedpsys
" for "opa0
" mode: as the password is encrypted with current user credentials, during shutdown the encrypted password created with current account will not be recognized. The encrypted password must then be created with the "psexec
" utility.root
" by default, not "system
"rsh
" and "ssh
" modes now use the RCDV output formatexpect
" mode is no more supported (this tool does not work on recent Windows versions), replaced by the "opa0
" mode.cryptedpass
" available for "opa0
" mode if not specified as "password
" in plain textlogfile
" parameter is not specified, a name and location are automatically given based on the session log file: one file per script execution with a shortcut file.opa0
" added that will replace "expect
" mode. This mode connects to the OPA0 console via a telnet function embedded in PowerShellclixmlsys
" that can be used with "expect
" and "opa0
" modes to differentiate credentials between current user and "system
" user (service account)windowwidth
" and "windowheight
" that are used to resize the window when running with "system
" user. This is useful during Windows shutdown to see check operations executed. BufferHeight set 2000 lines by default.
|
output layout modified for ease of reading
validation with Windows Server 2019
added banner to help identify what is running during Windows shutdown
error handling when stopping service added
script stop moved to a single function
during execution, the window name is changed according to messages reported in the log file
environment information display added when script is started (MD5sum added) and also recorded in the log file
commandparams
" added in .ini file that allows additional parameters for rsh and ssh.Example using ssh:
commandparams=-o Ciphers=+3des-cbc -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-dss
Notes: must be defined without quotes
openconsolecmd
" and "openconsolearg
" added in .ini file that allows to open the legacy OS console while shutting down the (legacy) OS.Notes:
openconsolecmd
" parameter must contain the executable full path (without quotes)openconsolearg
" parameter is optional (and without quotes)Example using putty:
openconsolecmd=C:\Program Files\CHARON\Build_20203\x64\putty
openconsolearg=-load OPA0 -P 10003
identityfsys
" added in .ini file that allows specific identity file for ssh when script is executed with "system" account (if added to Windows shutdown). If not specified the "identityfile
" parameter is used