Anchor | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
...
Using the "Local Group Policy Editor", it is possible to add the execution of a Powershell script at Windows shutdown. As this operation is performed with the "system
" account, some operations have to be performed depending on the method chosen (opa0
, rsh
or ssh
).
Warning |
---|
Please note shutdown scripts are executed when the shutdown is executed either from the "Windows Start" menu or using the shutdown command line. They are not always executed when clicking on the "Restart" button from the Windows Update tool. |
opa0 mode preparation
If the combination of username/password is used, there is no need for configuration change.
...
|
Run the following command to create the encrypted file:
|
Example:
|
Div | ||
---|---|---|
| ||
Run the Powershell script in check mode:
...
Note | |
---|---|
It is recommended to move the | |
Div | |
class | pagebreak
rsh mode preparation
Warning |
---|
A proxy has to be defined at OpenVMS level hence the local " It is then highly recommended to install an English version of Windows to avoid issues with accents and non standard characters when creating this proxy. |
...
|
Run the Powershell script in check mode:
...
|
Create a new ssh trust as described in the "Using ssh" chapter.
...