![]() Troubleshoot macOS shell script policies using log collection A script run status of Success indicated that the script returned zero as the exit code.A script run status of Failed indicates that the script returned a non-zero exit code or the script is malformed.Once a script runs, it returns one of the following statuses: However, updated scripts are treated as new scripts and will report the run status again. Script run status is not updated on subsequent runs. Irrespective of the selected Script frequency, the script run status is reported only the first time a script is run. The groups you choose are shown in the list, and will receive your script policy. Select one or more user or device groups that are to receive the script. An existing list of Azure AD groups is shown. Select Assignments > Select groups to include. For full details about scope tags, see Use role-based access control and scope tags for distributed IT. You can use scope tags to determine who can see scripts in Intune. In Scope tags, optionally add scope tags for the script, and select Next. Choose Not configured (default) to not retry when a script fails. Max number of times to retry if script fails: Select how many times the script should be run if it returns a non-zero exit code (zero meaning success).Choose Not configured (default) to run a script only once. Script frequency: Select how often the script is to be run.End users see a IT is configuring your computer notification from Intune on macOS devices. Hide script notifications on devices: By default, script notifications are shown for each script that is run.Choose No (default) to run the script as the root user. Run script as signed-in user: Select Yes to run the script with the user's credentials on the device.The script file must be less than 200 KB in size. Upload script: Browse to the shell script.In Script settings, enter the following properties, and select Next: This setting is optional, but recommended. Description: Enter a description for the shell script.Name: Enter a name for the shell script.In Basics, enter the following properties, and select Next: Select Devices > macOS > Shell scripts > Add. Sign in to the Microsoft Intune admin center. Shell scripts that are running for longer than 60 minutes are stopped and reported as "failed". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |