How to Run an Automated PowerShell, JavaScript, or Python Script
Create automated scripts that you can run on multiple devices without user interaction.
Note: To run automated scripts, you must have the latest major version of the relevant framework installed on the target computer.
Important: To use this feature, the user must be authenticated with zero trust authentication, which serves the security of the session. Authentication is required only once when you run a Remote Execution step.
Results:
Note:
When you reference a file from the script, you only have to enter its name. Once the step ends, the file is deleted from the remote computer, unless it is copied somewhere else with the script.
Example:
You upload 'a.txt' file for the job and you would like to copy it into a folder (also known as file distribution). Your script should look something like this:
You upload 'a.txt' file for the job and you would like to copy it into a folder (also known as file distribution). Your script should look something like this:
Copy-Item a.txt C:\Destination
Article last updated: 21 July, 2022