By default, JAMS signs any PowerShell scripts that it executes; however, scripts can also be signed using a different certificate and run within a JAMS job.
Please Note:
- JAMS Parameters and Variables cannot be parsed within a signed script. This is due to the fact that the Job source is changed after it is parsed with the substituted values.
- The signed script must be encoded in UTF-8 format, then signed. Save the script in UTF-8 format using Powershell ISE, Notepad, or any other preferred editor.
- Sign the script, then copy the entire script and hash into the Job's source utilizing the PowerShell Execution Method.
- Signed scripts can also be called from external sources by providing the path to the script within your Job's source.
Comments