Scripts
Intune script management
Lists the scripts configured in the selected tenant, covering Windows PowerShell scripts, macOS shell scripts, remediation scripts and Linux scripts. From here you can view and edit a script's contents, change how it is assigned, or remove it from the tenant.
Table Details
Script Type
Which kind of script this is: Windows, MacOS, Remediation or Linux.
Display Name
The name of the script.
Script Assignment
The groups and broad targets the script is assigned to. All Devices and All Licensed Users appear here where those targets are used.
Script Exclude
The groups excluded from the script.
Description
The description recorded against the script.
Run As Account
Whether the script runs in the system or user context.
Last Modified Date Time
When the script was last changed.
The remaining properties are those of the Graph resource type matching the script's own type. For more information on the properties please see the Graph documentation:
Windows: deviceManagementScript
MacOS: deviceShellScript
Remediation: deviceHealthScript
Table Actions
Assign to All Users
Assigns the script to all licensed users.
Assign to All Devices
Assigns the script to all devices.
Assign Globally (All Users / All Devices)
Assigns the script to both all licensed users and all devices.
Assign to Custom Group
Assigns the script to specific groups, or excludes specific groups from it. Selecting Exclude together with Replace and no groups clears all existing exclusions while leaving the included assignments in place.
Edit Script
Opens the script's contents in an editor. Save with the icon in the top right of the dialogue, or close with the cross. Closing with unsaved changes asks for confirmation first.
Delete Script
Deletes the script from the tenant.
More Info
Opens the Extended Info flyout with the full details for the selected row.
Editing a Script
Selecting Edit Script fetches the script's contents and opens them in a syntax-highlighted editor. Windows and remediation scripts are shown as PowerShell; macOS and Linux scripts as shell.
Remediation scripts carry two payloads, so the dialogue shows Detection Script and Remediation Script on separate tabs, each edited and saved independently of the other.
Built-in Microsoft remediation scripts are read-only. The editor opens and the script can be read, but the save control is not offered, because Intune rejects changes to them.
Feature Requests / Ideas
We value your feedback and ideas. Please raise any feature requests on GitHub.
Last updated
Was this helpful?

