...
Code Block |
---|
# Example Shell: echo name1 = value2 >> %SCHEDULER_RETURN_VALUES% # Example PowerShell solution 1: $spooler_task.order().params().set_value( "name1", "value2" ) # Example PowerShell solution 2: shorthand notation for task/order parameter $spooler_params.set( "name1", "value2" ) |
Execution Policies
By default PowerShell ships with the execution policy Restricted
that does not allow to run scripts from files.
Should jobs be able to run external PowerShell script files then the execution policy has to be modified. This can be performed
- at machine level, e.g. if an administrator executes
Set-ExecutionPolicy RemoteSigned
- at user level if the the user executes
Set-ExecutionPolicy bypass -scope CurrentUser
- at process level if the the user executes
Set-ExecutionPolicy bypass -scope
process
Should execution policies not be explicitely ruled for a scheduling environment then we recommend to add Set-ExecutionPolicy bypass -scope
process
to the profile.
Profile Handling
Profile Locations
...