How to Run an AI-assisted Automated Script
Create AI-assisted 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.
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
Frequently Asked Questions
- Can I write prompts in languages other than English?
- Yes, OpenAI supports almost all languages. In fact, you can mix languages in a prompt: For example, you can start your prompt in English and then switch to Spanish in mid-sentence. For the list of supported languages, see the Microsoft support site.
- Can I edit a script that I have previously run?
- Yes. See How to Rerun a Remote Execution Job. Notice however, that you cannot edit your original prompt, only the content of your script.
- How can I make the AI add logging to a script?
- Simply ask the AI to create log. Seriously, that's all you have to do.
- How can I improve my existing script?
- You can write "Improve this script" and then copy the whole script into the prompt field to let the AI smarten your code.
- Can I run AI-assisted scripts on multiple platforms?
- No, as with any other Remote Execution steps, this is not possible.
Article last updated: 14 June, 2023