Run server-side script
The Run server-side script step runs the specified script (for example, filename.ps1) on the DeployR server under the service account. The script receives the task sequence variables currently set on the client and can return additional values to add to the task sequence environment.

Options
Script name
Name of the script file in the Scripts folder of the DeployR content location.
Timeout
Time limit for the script, in minutes; 0 means no limit. Default: 15.
The script itself must be located in the "Scripts" folder in the configured content location (DeployR Content Location\Scripts). By default, this location is C:\ProgramData\2Pint Software\DeployR\Scripts. Many organizations change the default, so if you are unsure where your DeployR content location is, check the DeployR Configuration Editor:

An example script named "SampleServerScript.ps1" can be found in the "Tools" folder in the installation path, e.g. C:\Program Files\2Pint Software\DeployR\Tools. This example shows how to receive specific task sequence variables as named parameters, in this case a variable named "HardwareHash", and how extra parameters can be processed to get or act on the full list:
Because the task sequence variable values are passed as name-value pairs, the extra arguments need to be processed to associate the two into a hash table:
New task sequence variables can be set by having the script return new PSCustomObject instances to the pipeline:
Other types of objects should not be written to the pipeline.
The output from PowerShell-standard "Write-Information," "Write-Warning", "Write-Error" and "Write-Verbose" cmdlets will be written to the DeployR service's Logger event log.
Last updated

