Muistiinpano
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoa.
Tämän sivun käyttö edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoa.
Create and validate a Device Control policy, and then deploy it to macOS devices by using Microsoft Intune or Jamf Pro. You can also apply the policy locally on a test Mac before you deploy it to managed devices. For information about Device Control capabilities, policy settings, and requirements, see Microsoft Defender for Endpoint Device Control for macOS.
Prerequisites
- Completion of the Device Control requirements and endpoint preparation.
- Review the permissions required for your management tool.
- The requirements for your deployment method:
Microsoft Intune: An Intune subscription and Defender for Endpoint installed and onboarded by using Intune.
Microsoft Intune is a separate product that isn't part of Defender for Endpoint, and it isn't included in all subscriptions. To use Intune, you need a subscription that includes it, or you can buy it separately as a standalone subscription or add-on. For more information, see Microsoft Intune licensing.
Jamf Pro: A Jamf Pro subscription, Defender for Endpoint installed and onboarded by using Jamf Pro, and Full Disk Access granted by using Jamf Pro.
Jamf Pro is a separate product that isn't part of Defender for Endpoint and isn't included with Defender for Endpoint subscriptions. For product and subscription information, see Jamf Pro.
Important
Microsoft provides information about Jamf Pro to support integration scenarios but doesn't provide troubleshooting support for this third-party product. For issues specific to Jamf Pro, contact Jamf support.
Manual testing: Defender for Endpoint version
101.23082.0018or later installed and onboarded manually on a test Mac that doesn't have a Device Control policy managed by mobile device management (MDM).
Create and validate the Device Control policy
A Device Control policy for macOS is one JSON object that contains settings, device groups, and rules. For descriptions of the policy properties, see Understand Device Control policies.
Use the deny removable media except Kingston sample or another Device Control policy sample as a starting point.
Validate the policy structure against the Device Control policy JSON schema.
Save the policy as
device-control-policy.jsonin the~/Downloadsfolder on a test Mac that has Defender for Endpoint installed.Run the following command in Terminal:
mdatp device-control policy validate --path ~/Downloads/device-control-policy.jsonResolve any validation errors before you deploy or apply the policy.
Deploy the policy by using Microsoft Intune
Use a custom macOS configuration profile to deploy the policy through Intune.
Create the Apple configuration profile
Download the Device Control sample configuration profile.
In the
deviceControldictionary, replace the JSON value in thepolicystring with your validated Device Control policy.Keep the
dlpsettings that enable theDC_in_dlpfeature.Save the file as
device-control.mobileconfig.
Deploy the configuration profile
Create a custom macOS configuration profile in Intune. For detailed instructions, see Add custom settings to Apple devices in Microsoft Intune (link opens in a new tab).
On the Policies tab of the Devices | Configuration page in the Microsoft Intune admin center at https://intune.microsoft.com/#view/Microsoft_Intune_DeviceSettings/DevicesMenu/~/configuration, select
Create >
New policy.Use the following settings:
- Platform: Select macOS.
- Profile type: Select Templates.
- Template name: Select Custom.
In the Custom wizard, use the following settings on the Configuration settings tab:
- Configuration profile name: Enter a descriptive name, such as
Microsoft Defender device control. - Deployment channel: Select Device channel.
- Configuration profile file: Select the
device-control.mobileconfigfile that you created.
- Configuration profile name: Enter a descriptive name, such as
Deploy the policy by using Jamf Pro
Use the Defender for Endpoint preference schema to add the Device Control policy to a Jamf Pro computer configuration profile.
Download the current Defender for Endpoint preference schema.
Follow the Jamf instructions to deploy a custom computer configuration profile.
Use the following Defender-specific settings:
- Preference Domain: Enter
com.microsoft.wdav. - Schema: Upload the downloaded
schema.jsonfile. - Property: Add Device Control, and then add Device Control Policy.
- Value: Paste the complete Device Control policy JSON.
- Scope: Select the computer group that contains the target macOS devices.
- Preference Domain: Enter
Save and deploy the configuration profile.
Test the policy manually
Use manual policy deployment only in preproduction environments. For production environments, deploy Device Control by using Microsoft Intune or Jamf Pro.
Apply the validated policy to the test Mac:
mdatp config device-control policy set --path ~/Downloads/device-control-policy.jsonTo test policy changes, edit the JSON file, validate it, and then rerun the command to apply the updated policy.
Verify Device Control
After you deploy or apply the policy, use the following commands in Terminal to verify Device Control on a target Mac.
Inspect Device Control status:
mdatp health --details device_controlThe command returns output similar to the following example:
active : ["v2"] v1_configured : false v1_enforcement_level : unavailable v2_configured : true v2_state : "enabled" v2_sensor_connection : "created_ok" v2_full_disk_access : "approved"Review the following values:
active: Lists the active policy versions:[]: Device Control isn't configured.["v1"]: Version 1 is active. Version 1 is obsolete and isn't covered in this documentation.["v2"]: Version 2 is active.["v1", "v2"]: Both versions are active. Remove the version 1 configuration.
v1_configured: Indicates whether a version 1 configuration is applied.v1_enforcement_level: Shows the enforcement level when version 1 is enabled.v2_configured: Indicates whether a version 2 configuration is applied. A working configuration reportstrue.v2_state: Shows the version 2 state. A working configuration reportsenabled.v2_sensor_connection: Shows the connection to the system extension. A working connection reportscreated_ok.v2_full_disk_access: Shows whether Full Disk Access is approved. If the value isn'tapproved, Device Control might not prevent some or all operations.
View the effective Device Control preferences:
mdatp device-control policy preferences listThe command returns output similar to the following example:
.Preferences |-o UX | |-o Navigation Target: "https://www.microsoft.com" |-o Features | |-o Removable Media | |-o Disable: false |-o Global |-o Default Enforcement: "allow"Review the Default Enforcement value in the output.
View the deployed rules:
mdatp device-control policy rules listView the groups referenced by the policy:
mdatp device-control policy groups listTest the protected operations that the policy allows, denies, or audits.
Remove a manually applied policy
Remove the local policy from the test Mac when you finish testing:
mdatp config device-control policy reset