For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Column
Description

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:

Where a script type cannot be retrieved from the tenant, a single row appears for that type carrying the error Graph returned in place of a script name. That usually means the tenant is not licensed for it rather than that anything is wrong.

Table Actions

Action
Description
Bulk Action Available

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.

Every assignment action offers an assignment mode. Append keeps the existing assignments and adds the new ones. Replace overwrites existing assignments, and for Assign to Custom Group it replaces only the direction you chose, include or exclude, leaving the other direction and any All Users or All Devices targets intact.

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.

Some script types hold no editable content, in which case the dialogue says so rather than opening an editor.


Feature Requests / Ideas

We value your feedback and ideas. Please raise any feature requests on GitHub.

Last updated

Was this helpful?