Actions67
- Interface Actions
- Firewall Address List Actions
- IP Pool Actions
- ARP Actions
- DHCP Server Actions
- IP Address Actions
- Hotspot Actions
- Queue Simple Actions
- Wireless Actions
- System Actions
- System Clock Actions
- System Identity Actions
- System Script Actions
- System Scheduler Actions
- IP Service Actions
- Netwatch Actions
- Log Actions
- Custom Command Actions
System Script → Set
AI-generatedSummary
Update a system script on the MikroTik device.
Inputs
- targetId (required) — ID (*1, *2) or Name (ether1, user1) of the script to set
- scriptSource — Source code of the script
- scriptPolicy — Comma separated policies (e.g. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon)
- commentText — Comment for the script
Output shape
An array containing one object with resource, operation, count, and data fields. data reflects the RouterOS API response; if cleanKeys is enabled, - and / in keys are replaced with _.
Connection retry logic (5 attempts, 3s delay) and global cleanKeys/tag options apply per node configuration.
Examples
Example 1: Set the source and policy of an existing script named 'backup'.
Target ID / Name: backup; Source: /system script; Policy: read,write; Comment: Updated backup script