Skip to content

What Are Compliance Scripts?

Compliance scripts are zsh scripts that check macOS security settings against your baseline and optionally fix non-compliant settings. They handle settings that can’t be enforced through configuration profiles or DDM.

The mSCP project generates a compliance script from your baseline, designed to be deployed via MDM or run locally.


FeatureDescription
CheckScan current settings against the baseline and report status
FixRemediate non-compliant settings to match the baseline
ExemptionsRespect rules marked as exempt (configured via MDM)
InteractiveMenu-driven mode for running scans and viewing reports

Use CaseDescription
Settings not supported by profilesSome security settings can only be configured via script
AuditingGenerate compliance reports for review
RemediationFix settings that drift from the baseline
Standalone MacsDevices not managed by MDM

OutputLocation
BASELINE_NAME_compliance.shbuild/BASELINE_NAME/
org.BASELINE_NAME.audit.plistbuild/BASELINE_NAME/preferences/