When the audit_log setting "force_comments_for_audit_log" set to true in joc.properties then it affects all cmdlets that modify an object in JOC Cockpit or JobScheduler.
For example syntax to add-order in JobChain:
The above syntax used to add-order but there is no parameter available to add a mandatory comment and the command shows the following error on executing:
All cmdlets of the PowerShell API that modify JobScheduler objects should allow to add an Audit Log comment when "force_comments_for_audit_log" set to true in joc.properties.
- As a result of this issue the PowerShell module was updated to make use of the JOC Cockpit REST API exclusively.
- Consider use of release 1.1.0 of the PowerShell module from https://github.com/sos-berlin/scheduler-cli-powershell