Configure the default behavior of the check/remediate script when run from a MDM without flag support. #25

Closed
opened 2026-01-19 18:28:58 +00:00 by michael · 0 comments
Owner

Originally created by @lucasbarmy on GitHub.

Description of issue:

Intune now allows for large shell scripts, but unfortunately does not support scripts with flags. The mscp shell script needs to be able to use the script config file to hard code the default state of running the script, when triggered from MDM

Example:

The plist file would include a key to set one of the following flags:
—check
—fix
—cfc

This would determine the default behavior of the script when triggered via MDM.

Expected result:

Script should operate without flags with, but with a pedefined flag configuration form the plist.

Thanks!
-The Army

Originally created by @lucasbarmy on GitHub. Description of issue: Intune now allows for large shell scripts, but unfortunately does not support scripts with flags. The mscp shell script needs to be able to use the script config file to hard code the default state of running the script, when triggered from MDM Example: The plist file would include a key to set one of the following flags: —check —fix —cfc This would determine the default behavior of the script when triggered via MDM. Expected result: Script should operate without flags with, but with a pedefined flag configuration form the plist. Thanks! -The Army
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: usnistgov/macos_security#25