Onboard Devices to Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn
In brief
The page received wording, formatting, capitalization, and punctuation updates, plus linked references to the Defender, Intune, and Azure portals. The introduction now notes that several device onboarding options are available.
What Defender admins need to know
Administrators have clearer onboarding and detection-test instructions to follow; no required action is stated.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Onboard devicesDevices to Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn
This article describes how to onboard devices to Defender for Business.
What to do
Select a tab:
- Windows 10 and 11
- Mac
- Mobile
(new: new capabilities are available for iOS and Androiddevices!)devices. - Servers
(Windows: Windows Server or LinuxServer)Server.
View your onboarding options, and follow the guidance on the selected tab.
View a list of onboarded devices.
Run a phishing test on a device.
Note
Windows devices must be runningrun one of the following operating systems:
- Windows 10 or 11 Business
- Windows 10 or 11 Professional
Choose one of the following options to onboard Windows client devices to Defender for Business:
- Local
script (forscript. For onboarding devices manually in the Microsoft Defenderportal)portal. - Group
Policy (ifPolicy. If you're already using Group Policy in yourorganization)organization. - Microsoft
Intune (ifIntune. If you're already usingIntune)Intune.
Local script for Windows 10 and 11
RunningWhen you run the onboarding script on a Windows device takes the following actions:device, it:
- Creates a trust with Microsoft Entra
ID (ifID, if a trust doesn't alreadyexist).exist. - Enrolls the device in Microsoft
Intune (ifIntune, if it isn't alreadyenrolled).enrolled. - Onboards the device to Defender for Business.
If you're not currently using Intune, we recommend using the script to onboard devices to Defender for Business customers.
We recommend that you onboard up to 10 devices at a time when you use the local script method.
- Go to the
Microsoft Defender portal (Microsoft Defender portal), and sign in. - In the navigation pane, choose Settings > Endpoints, and then under Device management, choose Onboarding.
- Select Windows 10 and 11.
- Under Connectivity type, select Streamlined.
- In the Deployment method section, choose Local script, and then select Download onboarding package. We recommend that you save the onboarding package to a removable drive.
- On a Windows device, extract the contents of the configuration package to a location, such as the Desktop folder. You should have a file named
WindowsDefenderATPLocalOnboardingScript.cmd. - Open a command prompt as an administrator.
- Type the location of the script file. For example, if you copied the file to the Desktop folder,
you wouldtype%userprofile%\Desktop\WindowsDefenderATPLocalOnboardingScript.cmd, and then press the Enter key(oror select OK). - After the script runs, Run a detection test.
Group Policy for Windows 10 and 11
Intune for Windows 10 and 11
You can onboard Windows clients and other devices in Intune by using the Intune admin center (Intune admin center). There are several methods available for enrolling devices in Intune. We recommend using one of the following methods:
- Enable Windows automatic enrollment for company-owned or company-managed devices
- Ask users to enroll their own Windows 10/11 devices in Intune
When you set up automatic enrollment, users add their work account to the device. In the background, the device registers and joins Microsoft Entra ID and is enrolled in Intune.
- Go to the
Azure portal (Azure portal)and sign in. - Select Microsoft Entra ID > Mobility (MDM and MAM) > Microsoft Intune.
- Configure the MDM User scope and the MAM user scope.
Run a detection test on a Windows 10 or 11 device
After you onboard Windows devices to Defender for Business, you can run a detection test on the device to make sureensure that everything is working correctly.
On the Windows device, create a folder:
C:\test-MDATP-test.Open a Command Prompt
windowswindow as an administrator, and then run the following command:powershell.exe -NoExit -ExecutionPolicy Bypass -WindowStyle Hidden $ErrorActionPreference = 'silentlycontinue';(New-Object System.Net.WebClient).DownloadFile('http://127.0.0.1/1.exe', 'C:\\test-MDATP-test\\invoice.exe');Start-Process 'C:\\test-MDATP-test\\invoice.exe'
AfterWhen the command runs, the Command Prompt window closes automatically. If successful, the detection test is marked as completed, and a new alert appears in the Microsoft Defender portal (Microsoft Defender portal) for the newly onboarded device within about 10 minutes.
Mac
Mac
Local script for Mac
RunningWhen you run the local script on a Mac takes the following actions:Mac, it:
- Creates a trust with Microsoft Entra
ID (ifID, if a trust doesn't alreadyexist).exist. - Enrolls the Mac in Microsoft
Intune (ifIntune, if it isn't alreadyenrolled).enrolled. - Onboards the Mac to Defender for Business.
We recommend onboarding no more than 10 Macs at a time using this method.
Go to the
Microsoft Defender portal (Microsoft Defender portal), and sign in.In the navigation pane, choose Settings > Endpoints, and then under Device management, choose Onboarding.
Select macOS.
Under Connectivity type, select Streamlined.
On your Mac, save the installation package as
wdav.pkgto a local directory.Save the onboarding package as
WindowsDefenderATPOnboardingPackage.zipto the same directory you used for the installation package.Use Finder to navigate to
wdav.pkgyou saved, and then open it.Select Continue, agree
withto the license terms, and then enter your password when prompted.You're prompted to allow installation of a driver from
Microsoft (eitherMicrosoft, System Extension Blocked or Installation is on hold, orboth).both. You must allow the driver installation. Select Open Security Preferences or Open System Preferences > Security & Privacy, and then select Allow.Use the following Bash command to run the onboarding package:
/usr/bin/unzip WindowsDefenderATPOnboardingPackage.zip \
&& /bin/chmod +x MicrosoftDefenderATPOnboardingMacOs.sh \
&& Sudo bash -x MicrosoftDefenderATPOnboardingMacOs.sh
After the Mac is enrolled in Intune, you can add it to a device group. Learn more about device groups in Defender for Business.
Intune for Mac
If you already have Intune, you can enroll Mac computers by using the Intune admin center (Intune admin center). There are several methods available for enrolling Mac in Intune. We recommend one of the following methods:
- Choose an option for company-owned Mac
- Ask users to enroll their own Mac in Intune
| Option | Description |
|---|---|
| Apple Automated Device Enrollment | Use this method to automate enrollment on devices purchased through Apple Business Manager or Apple School Manager. Automated device enrollment deploys the enrollment profile |
| Device enrollment manager (DEM) | Use this method for large-scale deployments and when there are multiple people in your organization who can help with enrollment setup. Someone with device enrollment manager (DEM) permissions can enroll up to 1,000 devices with a single Microsoft Entra account. This method uses the Company Portal app or Microsoft Intune app to enroll devices. You can't use a DEM account to enroll devices |
| Direct enrollment | Direct enrollment enrolls devices with no user affinity, so this method is best for devices that aren't associated with a single user. This method requires you to have physical access to the Macs you're enrolling. For more information, see Use Direct Enrollment for Mac. |
Ask users to enroll their own Mac in Intune
If your business prefers to have userusers enroll devices in Intune, direct usersthem to follow these steps:
- Go to the
Company Portal website (Company Portal website)and sign in. - Follow the instructions on the Company Portal website to add the device.
- Install the
Company Portal app atCompany Portal app, and follow the instructions in the app.
Confirm that a Mac is onboarded
To confirm that the device is associated with your company, use the following Python command in Bash:
mdatp health --field org_id.If you're using macOS 10.15 (Catalina) or later, grant Defender for Business consent to protect your device. Go to System Preferences > Security & Privacy > Privacy > Full Disk Access. Select the lock icon at the bottom of the dialog to make changes, and then select Microsoft Defender for Business
(or, or Defender for Endpoint, if that's what yousee).see.To verify that the device is onboarded, use the following command in Bash:
mdatp health --field real_time_protection_enabled
After you enroll a device is enrolled in Intune, you can add it to a device group. Learn more about device groups in Defender for Business.
Mobile devices
Mobile devices
You can useUse the following methods to onboard mobile devices, such as Android and iOS devices:
- Use the Microsoft Defender app
- Use Microsoft Intune
Use the Microsoft Defender app
Mobile threat defense capabilities are available in Defender for Business. With these capabilities, you can now onboard mobile devices (suchdevices, such as Android and iOS)iOS, by using the Microsoft Defender app. With this method, users download the app from Google Play or the Apple App Store, sign in, and complete onboarding steps.
Important
Make sureEnsure that Defender for Business finishedfinishes provisioning: In the Microsoft Defender portal, go to Assets > Devices.
- If you see the message,
"Hang on! We're preparing new spaces for your data and connectingthem,"them, Defender for Business isn't finished provisioning. This process is happening now, and it can take up to 24 hours to complete. - If you see a list of devices, or you're prompted to onboard devices, it means Defender for Business provisioning is complete.
Users can use the following procedures to onboard mobile devices using the Microsoft Defender app:
Android:Android:If you didn't sign in and register your device in the Microsoft Authenticator app, follow these steps on the device:
- Install the Microsoft Authenticator app from the Google Play store.
- In the Microsoft Authenticator app, sign in and register your device using your Microsoft 365 work or school account.
Install the Microsoft Defender: Antivirus app from the Google Play store on your device.
Open the Microsoft Defender app, sign in, and complete the onboarding process.
iOS/
iPadOS:iPadOS:If you didn't sign in and register your device in the Microsoft Authenticator app, follow these steps on the device:
- Install the Microsoft Authenticator app from the Apple App Store.
- In the Microsoft Authenticator app, sign in and register your device using your Microsoft 365 work or school account.
Install the Microsoft Defender: Security app from the Apple App Store on your device.
Allow the Microsoft Defender app to set up a VPN connection and add VPN configurations.
Choose whether to allow
notifications (suchnotifications, such asalerts).alerts.
Tip
Use Microsoft Intune
If your subscription includes Microsoft Intune, you can use it to onboard mobile devices, such as Android and iOS/iOS or iPadOS devices. See the following resources to get help enrolling these devices into Intune:
After you enroll a device is enrolled in Intune, you can add it to a device group. Learn more about device groups in Defender for Business.
Servers
Servers
Note
If you're planning toTo onboard an instance of Windows Server or Linux Server, you need an extra license, such as Microsoft Defender for Business servers.
Choose the operating system for your server:
Important
Make sure that you meet the following requirements beforeBefore you onboard a Windows Server endpoint:endpoint, ensure you meet the following requirements:
- You have a Microsoft Defender for Business servers license.
(ForFor more information, see How to get Microsoft Defender for Business servers.) - The enforcement scope for Windows Server is turned on. Go to Settings > Endpoints > Configuration management > Enforcement scope. Select Use MDE to enforce security configuration settings from MEM, select Windows Server, and then select Save.
You can onboard an instance of Windows Server to Defender for Business by using a local script.
Local script for Windows Server
Go to the
Microsoft Defender portal (Microsoft Defender portal), and sign in.In the navigation pane, choose Settings > Endpoints, and then under Device management, choose Onboarding.
Select an operating system, such as Windows Server 1803, 2019, and 2022, and then in the Deployment method section, choose Local script.
If you select Windows Server 2012 R2 and 2016, you have two packages to download and run: an installation package and an onboarding package. The installation package contains an MSI file that installs the Defender for Business agent. The onboarding package contains the script to onboard your Windows Server endpoint to Defender for Business.
Select Download onboarding package. We recommend that you save the onboarding package to a removable drive.
If you
selectedselect Windows Server 2012 R2 and 2016, also select Download installation package, and save the package to a removabledrivedrive.On your Windows Server endpoint, extract the contents of the
installation/installation and onboardingpackagepackages to a location such as the Desktop folder. You should have a file namedWindowsDefenderATPLocalOnboardingScript.cmd.If you're onboarding Windows Server 2012 R2 or Windows Server 2016, extract the installation package first.
Open a command prompt as an administrator and
docomplete the following steps:Windows Server
2012R22012 R2 or Windows Server 2016: Run the following commands:Msiexec.exe /i md4ws.msi /quietRun the
WindowsDefenderATPLocalOnboardingScript.cmd. For example, if you copied the file to the Desktop folder, run the following command:%userprofile%\Desktop\WindowsDefenderATPLocalOnboardingScript.cmdWindows Server 1803, 2019, or 2022: Run the
WindowsDefenderATPLocalOnboardingScript.cmd. For example, if you copied the file to the Desktop folder, run the following command:%userprofile%\Desktop\WindowsDefenderATPLocalOnboardingScript.cmd
Go to the Run a detection test on Windows Server section.
Run a detection test on Windows Server
After you onboard your Windows Server endpoint to Defender for Business, you can run a detection test to make sureensure that everything is working correctly:
On the Windows Server device, create a folder:
C:\test-MDATP-test.Open Command Prompt as an administrator, and run the following commands:
powershell.exe -NoExit -ExecutionPolicy Bypass -WindowStyle Hidden $ErrorActionPreference = 'silentlycontinue';(New-Object System.Net.WebClient).DownloadFile('http://127.0.0.1/1.exe', 'C:\\test-MDATP-test\\invoice.exe');Start-Process 'C:\\test-MDATP-test\\invoice.exe'
AfterWhen the command runs, the Command Prompt window closes automatically. If successful, the detection test is marked as completed, and a new alert appears in the Microsoft Defender portal (Microsoft Defender portal) for the newly onboarded device within about 10 minutes.
Linux Server
Important
Make sureEnsure that you meet the following requirements before you onboard a Linux Server endpoint:
- You have a Microsoft Defender for Business servers license.
(ForFor more information, see How to get Microsoft Defender for Business servers.) - You meet the prerequisites for Microsoft Defender for Endpoint on Linux.
Onboard Linux Server endpoints
You can useUse the following methods to onboard an instance ofa Linux Server instance to Defender for Business:
- Defender deployment tool: Deploy Microsoft Defender for Endpoint on Linux with Defender deployment tool.
- Local script: Deploy Microsoft Defender for Endpoint on Linux manually.
- Ansible: Deploy Microsoft Defender for Endpoint on Linux with Ansible.
- Chef: Deploy Defender for Endpoint on Linux with Chef.
View a list of onboarded devices
- Go to the
Microsoft Defender portal (Microsoft Defender portal), and sign in. - In the navigation pane, go to Assets > Devices. The Device inventory view opens.
Run a phishing test on a device
After you onboard a device, you can run a quick phishing test to make sureensure the device is connected and thatgenerates alerts are generated as expected.
- On a device, go to https://smartscreentestratings2.net. Defender for Business should block that URL on the user's device.
- As a member of your organization's security team, go to the
Microsoft Defender portal (Microsoft Defender portal)and sign in. - In the navigation pane, go to Incidents. You should see an informational alert that indicates a device tried to access a phishing site. \ No newline at end of file
@@ -1,6 +1,6 @@ --- layout: Conceptual-title: Onboard devices to Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn+title: Onboard Devices to Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn canonicalUrl: https://learn.microsoft.com/en-us/defender-business/mdb-onboard-devices breadcrumb_path: /defender-business/breadcrumb/toc.json feedback_system: Standard@@ -8,7 +8,7 @@ permissioned-type: public feedback_product_url: https://techcommunity.microsoft.com/t5/security-compliance-and-identity/ct-p/MicrosoftSecurityandCompliance uhfHeaderId: MSDocsHeader-MicrosoftDefender manager: bagol-description: See how to get devices onboarded to Defender for Business to protect your devices from day one.+description: See how to get devices onboarded to Defender for Business to protect your devices from day one. There are several options to onboard your company's devices. author: chrisda ms.author: chrisda ms.topic: overview@@ -48,7 +48,7 @@ spProducts: platformId: e7ed86ed-d185-3407-4ae0-a7951d186e9a --- -# Onboard devices to Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn+# Onboard Devices to Microsoft Defender for Business - Microsoft Defender for Business | Microsoft Learn This article describes how to onboard devices to Defender for Business.
@@ -59,10 +59,11 @@ Onboard your business devices to protect them right away. You can choose from se ## What to do
1. Select a tab:
+
- **Windows 10 and 11**
- **Mac**
- - **Mobile** (new capabilities are available for iOS and Android devices!)
- - **Servers** (Windows Server or Linux Server)
+ - **Mobile**: new capabilities are available for iOS and Android devices.
+ - **Servers**: Windows Server or Linux Server.
2. View your onboarding options, and follow the guidance on the selected tab.
3. View a list of onboarded devices.
4. Run a phishing test on a device.
@@ -73,7 +74,7 @@ Onboard your business devices to protect them right away. You can choose from se
Note
-Windows devices must be running one of the following operating systems:
+Windows devices must run one of the following operating systems:
- Windows 10 or 11 Business
- Windows 10 or 11 Professional
@@ -83,16 +84,16 @@ For more information, see [Microsoft Defender for Business requirements](mdb-req
Choose one of the following options to onboard Windows client devices to Defender for Business:
-- Local script (for onboarding devices manually in the Microsoft Defender portal)
-- Group Policy (if you're already using Group Policy in your organization)
-- Microsoft Intune (if you're already using Intune)
+- Local script. For onboarding devices manually in the Microsoft Defender portal.
+- Group Policy. If you're already using Group Policy in your organization.
+- Microsoft Intune. If you're already using Intune.
### Local script for Windows 10 and 11
-Running the onboarding script on a Windows device takes the following actions:
+When you run the onboarding script on a Windows device, it:
-- Creates a trust with Microsoft Entra ID (if a trust doesn't already exist).
-- Enrolls the device in Microsoft Intune (if it isn't already enrolled).
+- Creates a trust with Microsoft Entra ID, if a trust doesn't already exist.
+- Enrolls the device in Microsoft Intune, if it isn't already enrolled.
- Onboards the device to Defender for Business.
If you're not currently using Intune, we recommend using the script to onboard devices to Defender for Business customers.
@@ -101,14 +102,14 @@ Tip
We recommend that you onboard up to 10 devices at a time when you use the local script method.
-1. Go to the Microsoft Defender portal (https://security.microsoft.com), and sign in.
+1. Go to the [Microsoft Defender portal](https://security.microsoft.com), and sign in.
2. In the navigation pane, choose **Settings** > **Endpoints**, and then under **Device management**, choose **Onboarding**.
3. Select **Windows 10 and 11**.
4. Under **Connectivity type**, select **Streamlined**.
5. In the **Deployment method** section, choose **Local script**, and then select **Download onboarding package**. We recommend that you save the onboarding package to a removable drive.
6. On a Windows device, extract the contents of the configuration package to a location, such as the Desktop folder. You should have a file named `WindowsDefenderATPLocalOnboardingScript.cmd`.
7. Open a command prompt as an administrator.
-8. Type the location of the script file. For example, if you copied the file to the Desktop folder, you would type `%userprofile%\Desktop\WindowsDefenderATPLocalOnboardingScript.cmd`, and then press the Enter key (or select **OK**).
+8. Type the location of the script file. For example, if you copied the file to the Desktop folder, type `%userprofile%\Desktop\WindowsDefenderATPLocalOnboardingScript.cmd`, and then press the **Enter** key or select **OK**.
9. After the script runs, Run a detection test.
### Group Policy for Windows 10 and 11
@@ -117,7 +118,7 @@ If you prefer to use Group Policy to onboard Windows clients, follow the guidanc
### Intune for Windows 10 and 11
-You can onboard Windows clients and other devices in Intune by using the Intune admin center (https://intune.microsoft.com). There are several methods available for enrolling devices in Intune. We recommend using one of the following methods:
+You can onboard Windows clients and other devices in Intune by using the [Intune admin center](https://intune.microsoft.com). There are several methods available for enrolling devices in Intune. We recommend using one of the following methods:
- Enable Windows automatic enrollment for company-owned or company-managed devices
- Ask users to enroll their own Windows 10/11 devices in Intune
@@ -126,7 +127,7 @@ You can onboard Windows clients and other devices in Intune by using the Intune
When you set up automatic enrollment, users add their work account to the device. In the background, the device registers and joins Microsoft Entra ID and is enrolled in Intune.
-1. Go to the Azure portal (https://portal.azure.com/) and sign in.
+1. Go to the [Azure portal](https://portal.azure.com/) and sign in.
2. Select **Microsoft Entra ID** > **Mobility (MDM and MAM)** > **Microsoft Intune**.
3. Configure the **MDM User scope** and the **MAM user scope**.
@@ -153,16 +154,16 @@ To learn more, see [Enable Windows automatic enrollment](/en-us/intune/intune-se
### Run a detection test on a Windows 10 or 11 device
-After you onboard Windows devices to Defender for Business, you can run a detection test on the device to make sure that everything is working correctly.
+After you onboard Windows devices to Defender for Business, run a detection test on the device to ensure that everything is working correctly.
1. On the Windows device, create a folder: `C:\test-MDATP-test`.
-2. Open a Command Prompt windows as an administrator, and then run the following command:
+2. Open a Command Prompt window as an administrator, and then run the following command:
```powershell
powershell.exe -NoExit -ExecutionPolicy Bypass -WindowStyle Hidden $ErrorActionPreference = 'silentlycontinue';(New-Object System.Net.WebClient).DownloadFile('http://127.0.0.1/1.exe', 'C:\\test-MDATP-test\\invoice.exe');Start-Process 'C:\\test-MDATP-test\\invoice.exe'
```
-After the command runs, the Command Prompt window closes automatically. If successful, the detection test is marked as completed, and a new alert appears in the Microsoft Defender portal (https://security.microsoft.com) for the newly onboarded device within about 10 minutes.
+When the command runs, the Command Prompt window closes automatically. If successful, the detection test is marked as completed, and a new alert appears in the [Microsoft Defender portal](https://security.microsoft.com) for the newly onboarded device within about 10 minutes.
# [Mac](#tab/mac)
## Mac
@@ -178,15 +179,15 @@ To onboard Mac devices, choose one of the following options:
### Local script for Mac
-Running the local script on a Mac takes the following actions:
+When you run the local script on a Mac, it:
-- Creates a trust with Microsoft Entra ID (if a trust doesn't already exist).
-- Enrolls the Mac in Microsoft Intune (if it isn't already enrolled).
+- Creates a trust with Microsoft Entra ID, if a trust doesn't already exist.
+- Enrolls the Mac in Microsoft Intune, if it isn't already enrolled.
- Onboards the Mac to Defender for Business.
We recommend onboarding no more than 10 Macs at a time using this method.
-1. Go to the Microsoft Defender portal (https://security.microsoft.com), and sign in.
+1. Go to the [Microsoft Defender portal](https://security.microsoft.com), and sign in.
2. In the navigation pane, choose **Settings** > **Endpoints**, and then under **Device management**, choose **Onboarding**.
3. Select **macOS**.
4. Under **Connectivity type**, select **Streamlined**.
@@ -194,21 +195,21 @@ We recommend onboarding no more than 10 Macs at a time using this method. 6. On your Mac, save the installation package as `wdav.pkg` to a local directory.
7. Save the onboarding package as `WindowsDefenderATPOnboardingPackage.zip` to the same directory you used for the installation package.
8. Use Finder to navigate to `wdav.pkg` you saved, and then open it.
-9. Select **Continue**, agree with the license terms, and then enter your password when prompted.
-10. You're prompted to allow installation of a driver from Microsoft (either *System Extension Blocked* or *Installation is on hold*, or both). You must allow the driver installation. Select **Open Security Preferences** or **Open System Preferences** > **Security & Privacy**, and then select **Allow**.
+9. Select **Continue**, agree to the license terms, and then enter your password when prompted.
+10. You're prompted to allow installation of a driver from Microsoft, *System Extension Blocked* or *Installation is on hold*, or both. You must allow the driver installation. Select **Open Security Preferences** or **Open System Preferences** > **Security & Privacy**, and then select **Allow**.
11. Use the following Bash command to run the onboarding package:
-```bash
-/usr/bin/unzip WindowsDefenderATPOnboardingPackage.zip \
-&& /bin/chmod +x MicrosoftDefenderATPOnboardingMacOs.sh \
-&& Sudo bash -x MicrosoftDefenderATPOnboardingMacOs.sh
-```
+ ```bash
+ /usr/bin/unzip WindowsDefenderATPOnboardingPackage.zip \
+ && /bin/chmod +x MicrosoftDefenderATPOnboardingMacOs.sh \
+ && Sudo bash -x MicrosoftDefenderATPOnboardingMacOs.sh
+ ```
-After Mac is enrolled in Intune, you can add it to a device group. [Learn more about device groups in Defender for Business](mdb-create-edit-device-groups).
+After the Mac is enrolled in Intune, you can add it to a device group. [Learn more about device groups in Defender for Business](mdb-create-edit-device-groups).
### Intune for Mac
-If you already have Intune, you can enroll Mac computers by using the Intune admin center (https://intune.microsoft.com). There are several methods available for enrolling Mac in Intune. We recommend one of the following methods:
+If you already have Intune, you can enroll Mac computers by using the [Intune admin center](https://intune.microsoft.com). There are several methods available for enrolling Mac in Intune. We recommend one of the following methods:
- Choose an option for company-owned Mac
- Ask users to enroll their own Mac in Intune
@@ -219,66 +220,68 @@ Choose one of the following options to enroll company-managed Mac devices in Int
| Option | Description |
| --- | --- |
-| Apple Automated Device Enrollment | Use this method to automate enrollment on devices purchased through Apple Business Manager or Apple School Manager. Automated device enrollment deploys the enrollment profile "over the air," so you don't need to have physical access to devices. For more information, see [Automatically enroll Mac with the Apple Business Manager or Apple School Manager](/en-us/intune/intune-service/enrollment/device-enrollment-program-enroll-macos). |
-| Device enrollment manager (DEM) | Use this method for large-scale deployments and when there are multiple people in your organization who can help with enrollment setup. Someone with device enrollment manager (DEM) permissions can enroll up to 1,000 devices with a single Microsoft Entra account. This method uses the Company Portal app or Microsoft Intune app to enroll devices. You can't use a DEM account to enroll devices via Automated Device Enrollment. For more information, see [Enroll devices in Intune by using a device enrollment manager account](/en-us/intune/intune-service/enrollment/device-enrollment-manager-enroll). |
+| Apple Automated Device Enrollment | Use this method to automate enrollment on devices purchased through Apple Business Manager or Apple School Manager. Automated device enrollment deploys the enrollment profile *over the air*, so you don't need to have physical access to devices. For more information, see [Automatically enroll Mac with the Apple Business Manager or Apple School Manager](/en-us/intune/intune-service/enrollment/device-enrollment-program-enroll-macos). |
+| Device enrollment manager (DEM) | Use this method for large-scale deployments and when there are multiple people in your organization who can help with enrollment setup. Someone with device enrollment manager (DEM) permissions can enroll up to 1,000 devices with a single Microsoft Entra account. This method uses the Company Portal app or Microsoft Intune app to enroll devices. You can't use a DEM account to enroll devices by using Automated Device Enrollment. For more information, see [Enroll devices in Intune by using a device enrollment manager account](/en-us/intune/intune-service/enrollment/device-enrollment-manager-enroll). |
| Direct enrollment | Direct enrollment enrolls devices with no user affinity, so this method is best for devices that aren't associated with a single user. This method requires you to have physical access to the Macs you're enrolling. For more information, see [Use Direct Enrollment for Mac](/en-us/intune/intune-service/enrollment/device-enrollment-direct-enroll-macos). |
#### Ask users to enroll their own Mac in Intune
-If your business prefers to have user enroll devices in Intune, direct users to follow these steps:
+If your business prefers to have users enroll devices in Intune, direct them to follow these steps:
-1. Go to the Company Portal website (https://portal.manage.microsoft.com/) and sign in.
+1. Go to the [Company Portal website](https://portal.manage.microsoft.com/) and sign in.
2. Follow the instructions on the Company Portal website to add the device.
-3. Install the Company Portal app at https://aka.ms/EnrollMyMac, and follow the instructions in the app.
+3. Install the [Company Portal app](https://aka.ms/EnrollMyMac), and follow the instructions in the app.
### Confirm that a Mac is onboarded
1. To confirm that the device is associated with your company, use the following Python command in Bash:
`mdatp health --field org_id`.
-2. If you're using macOS 10.15 (Catalina) or later, grant Defender for Business consent to protect your device. Go to **System Preferences** > **Security & Privacy** > **Privacy** > **Full Disk Access**. Select the lock icon at the bottom of the dialog to make changes, and then select **Microsoft Defender for Business** (or **Defender for Endpoint**, if that's what you see).
+2. If you're using macOS 10.15 (Catalina) or later, grant Defender for Business consent to protect your device. Go to **System Preferences** > **Security & Privacy** > **Privacy** > **Full Disk Access**. Select the lock icon at the bottom of the dialog to make changes, and then select **Microsoft Defender for Business**, or **Defender for Endpoint**, if that's what you see.
3. To verify that the device is onboarded, use the following command in Bash:
`mdatp health --field real_time_protection_enabled`
-After a device is enrolled in Intune, you can add it to a device group. [Learn more about device groups in Defender for Business](mdb-create-edit-device-groups).
+After you enroll a device in Intune, you can add it to a device group. [Learn more about device groups in Defender for Business](mdb-create-edit-device-groups).
# [Mobile devices](#tab/mobiles)
## Mobile devices
-You can use the following methods to onboard mobile devices, such as Android and iOS devices:
+Use the following methods to onboard mobile devices, such as Android and iOS devices:
- Use the Microsoft Defender app
- Use Microsoft Intune
### Use the Microsoft Defender app
-[Mobile threat defense capabilities](mdb-mtd) are available in Defender for Business. With these capabilities, you can now onboard mobile devices (such as Android and iOS) by using the Microsoft Defender app. With this method, users download the app from Google Play or the Apple App Store, sign in, and complete onboarding steps.
+[Mobile threat defense capabilities](mdb-mtd) are available in Defender for Business. With these capabilities, you can now onboard mobile devices, such as Android and iOS, by using the Microsoft Defender app. With this method, users download the app from Google Play or the Apple App Store, sign in, and complete onboarding steps.
Important
-Make sure that Defender for Business finished provisioning: In the [Microsoft Defender portal](https://security.microsoft.com), go to **Assets** > **Devices**.
+Ensure that Defender for Business finishes provisioning: In the [Microsoft Defender portal](https://security.microsoft.com), go to **Assets** > **Devices**.
-- If you see the message, "Hang on! We're preparing new spaces for your data and connecting them," Defender for Business isn't finished provisioning. This process is happening now, and it can take up to 24 hours to complete.
+- If you see the message, *Hang on! We're preparing new spaces for your data and connecting them*, Defender for Business isn't finished provisioning. This process is happening now, and it can take up to 24 hours to complete.
- If you see a list of devices, or you're prompted to onboard devices, it means Defender for Business provisioning is complete.
Users can use the following procedures to onboard mobile devices using the Microsoft Defender app:
-- **Android**:
+- Android:
1. If you didn't sign in and register your device in the Microsoft Authenticator app, follow these steps on the device:
+
1. Install the [Microsoft Authenticator app](https://apps.apple.com/app/microsoft-authenticator/id983156458) from the Google Play store.
2. In the Microsoft Authenticator app, sign in and register your device using your Microsoft 365 work or school account.
2. Install the [Microsoft Defender: Antivirus app](https://play.google.com/store/apps/details?id=com.microsoft.scmx) from the Google Play store on your device.
3. Open the Microsoft Defender app, sign in, and complete the onboarding process.
-- **iOS/iPadOS**:
+- iOS/iPadOS:
1. If you didn't sign in and register your device in the Microsoft Authenticator app, follow these steps on the device:
+
1. Install the [Microsoft Authenticator app](https://play.google.com/store/apps/details?id=com.azure.authenticator) from the Apple App Store.
2. In the Microsoft Authenticator app, sign in and register your device using your Microsoft 365 work or school account.
2. Install the [Microsoft Defender: Security app](https://apps.apple.com/app/microsoft-defender-security/id1526737990) from the Apple App Store on your device.
3. Allow the Microsoft Defender app to set up a VPN connection and add VPN configurations.
- 4. Choose whether to allow notifications (such as alerts).
+ 4. Choose whether to allow notifications, such as alerts.
Tip
@@ -286,19 +289,19 @@ After you onboard a mobile device using the Microsoft Defender app, go to the Ru
### Use Microsoft Intune
-If your subscription includes Microsoft Intune, you can use it to onboard mobile devices, such as Android and iOS/iPadOS devices. See the following resources to get help enrolling these devices into Intune:
+If your subscription includes Microsoft Intune, you can use it to onboard mobile devices, such as Android and iOS or iPadOS devices. See the following resources to get help enrolling these devices into Intune:
- [Enroll Android devices](/en-us/intune/intune-service/fundamentals/deployment-guide-enrollment-android)
- [Enroll iOS or iPadOS devices](/en-us/intune/intune-service/fundamentals/deployment-guide-enrollment-ios-ipados)
-After a device is enrolled in Intune, you can add it to a device group. [Learn more about device groups in Defender for Business](mdb-create-edit-device-groups).
+After you enroll a device in Intune, you can add it to a device group. [Learn more about device groups in Defender for Business](mdb-create-edit-device-groups).
# [Servers](#tab/Servers)
## Servers
Note
-If you're planning to onboard an instance of Windows Server or Linux Server, you need an extra license, such as [Microsoft Defender for Business servers](get-defender-business#how-to-get-microsoft-defender-for-business-servers).
+To onboard an instance of Windows Server or Linux Server, you need an extra license, such as [Microsoft Defender for Business servers](get-defender-business#how-to-get-microsoft-defender-for-business-servers).
Choose the operating system for your server:
@@ -309,73 +312,73 @@ Choose the operating system for your server:
Important
-Make sure that you meet the following requirements before you onboard a Windows Server endpoint:
+Before you onboard a Windows Server endpoint, ensure you meet the following requirements:
-- You have a Microsoft Defender for Business servers license. (For more information, see [How to get Microsoft Defender for Business servers](get-defender-business#how-to-get-microsoft-defender-for-business-servers).)
+- You have a Microsoft Defender for Business servers license. For more information, see [How to get Microsoft Defender for Business servers](get-defender-business#how-to-get-microsoft-defender-for-business-servers).
- The enforcement scope for Windows Server is turned on. Go to **Settings** > **Endpoints** > **Configuration management** > **Enforcement scope**. Select **Use MDE to enforce security configuration settings from MEM**, select **Windows Server**, and then select **Save**.
You can onboard an instance of Windows Server to Defender for Business by using a local script.
### Local script for Windows Server
-1. Go to the Microsoft Defender portal (https://security.microsoft.com), and sign in.
+1. Go to the [Microsoft Defender portal](https://security.microsoft.com), and sign in.
2. In the navigation pane, choose **Settings** > **Endpoints**, and then under **Device management**, choose **Onboarding**.
3. Select an operating system, such as **Windows Server 1803, 2019, and 2022**, and then in the **Deployment method** section, choose **Local script**.
If you select **Windows Server 2012 R2 and 2016**, you have two packages to download and run: an installation package and an onboarding package. The installation package contains an MSI file that installs the Defender for Business agent. The onboarding package contains the script to onboard your Windows Server endpoint to Defender for Business.
4. Select **Download onboarding package**. We recommend that you save the onboarding package to a removable drive.
- If you selected **Windows Server 2012 R2 and 2016**, also select **Download installation package**, and save the package to a removable drive
-5. On your Windows Server endpoint, extract the contents of the installation/onboarding package to a location such as the Desktop folder. You should have a file named `WindowsDefenderATPLocalOnboardingScript.cmd`.
+ If you select **Windows Server 2012 R2 and 2016**, also select **Download installation package**, and save the package to a removable drive.
+5. On your Windows Server endpoint, extract the contents of the installation and onboarding packages to a location such as the Desktop folder. You should have a file named `WindowsDefenderATPLocalOnboardingScript.cmd`.
If you're onboarding Windows Server 2012 R2 or Windows Server 2016, extract the installation package first.
-6. Open a command prompt as an administrator and do the following steps:
+6. Open a command prompt as an administrator and complete the following steps:
- - **Windows Server 2012R2 or Windows Server 2016**: Run the following commands:
+ - **Windows Server 2012 R2 or Windows Server 2016**: Run the following commands:
- ```dos
+ ```cmd
Msiexec.exe /i md4ws.msi /quiet
```
Run the `WindowsDefenderATPLocalOnboardingScript.cmd`. For example, if you copied the file to the Desktop folder, run the following command:
- ```dos
+ ```cmd
%userprofile%\Desktop\WindowsDefenderATPLocalOnboardingScript.cmd
```
- **Windows Server 1803, 2019, or 2022**: Run the `WindowsDefenderATPLocalOnboardingScript.cmd`. For example, if you copied the file to the Desktop folder, run the following command:
- ```dos
+ ```cmd
%userprofile%\Desktop\WindowsDefenderATPLocalOnboardingScript.cmd
```
7. Go to the Run a detection test on Windows Server section.
### Run a detection test on Windows Server
-After you onboard your Windows Server endpoint to Defender for Business, you can run a detection test to make sure that everything is working correctly:
+After you onboard your Windows Server endpoint to Defender for Business, run a detection test to ensure that everything is working correctly:
1. On the Windows Server device, create a folder: `C:\test-MDATP-test`.
2. Open Command Prompt as an administrator, and run the following commands:
- ```dos
+ ```cmd
powershell.exe -NoExit -ExecutionPolicy Bypass -WindowStyle Hidden $ErrorActionPreference = 'silentlycontinue';(New-Object System.Net.WebClient).DownloadFile('http://127.0.0.1/1.exe', 'C:\\test-MDATP-test\\invoice.exe');Start-Process 'C:\\test-MDATP-test\\invoice.exe'
```
-After the command runs, the Command Prompt window closes automatically. If successful, the detection test is marked as completed, and a new alert appears in the Microsoft Defender portal (https://security.microsoft.com) for the newly onboarded device within about 10 minutes.
+When the command runs, the Command Prompt window closes automatically. If successful, the detection test is marked as completed, and a new alert appears in the [Microsoft Defender portal](https://security.microsoft.com) for the newly onboarded device within about 10 minutes.
## Linux Server
Important
-Make sure that you meet the following requirements before you onboard a Linux Server endpoint:
+Ensure that you meet the following requirements before you onboard a Linux Server endpoint:
-- You have a Microsoft Defender for Business servers license. (For more information, see [How to get Microsoft Defender for Business servers](get-defender-business#how-to-get-microsoft-defender-for-business-servers).)
+- You have a Microsoft Defender for Business servers license. For more information, see [How to get Microsoft Defender for Business servers](get-defender-business#how-to-get-microsoft-defender-for-business-servers).
- You meet the [prerequisites for Microsoft Defender for Endpoint on Linux](/en-us/defender-endpoint/mde-linux-prerequisites).
### Onboard Linux Server endpoints
-You can use the following methods to onboard an instance of Linux Server to Defender for Business:
+Use the following methods to onboard a Linux Server instance to Defender for Business:
-- **Defender deployment tool**: [Deploy Microsoft Defender for Endpoint on Linux with Defender deployment tool](/en-us/defender-endpoint/linux-install-with-defender-deployment-tool)
+- **Defender deployment tool**: [Deploy Microsoft Defender for Endpoint on Linux with Defender deployment tool](/en-us/defender-endpoint/linux-install-with-defender-deployment-tool).
- **Local script**: [Deploy Microsoft Defender for Endpoint on Linux manually](/en-us/defender-endpoint/linux-install-manually).
- **Ansible**: [Deploy Microsoft Defender for Endpoint on Linux with Ansible](/en-us/defender-endpoint/linux-install-with-ansible).
- **Chef**: [Deploy Defender for Endpoint on Linux with Chef](/en-us/defender-endpoint/linux-deploy-defender-for-endpoint-with-chef).
@@ -389,13 +392,13 @@ Onboarding an instance of Linux Server to Defender for Business is the same as o
## View a list of onboarded devices
-1. Go to the Microsoft Defender portal (https://security.microsoft.com), and sign in.
+1. Go to the [Microsoft Defender portal](https://security.microsoft.com), and sign in.
2. In the navigation pane, go to **Assets** > **Devices**. The **Device inventory** view opens.
## Run a phishing test on a device
-After you onboard a device, you can run a quick phishing test to make sure the device is connected and that alerts are generated as expected.
+After you onboard a device, run a quick phishing test to ensure the device is connected and generates alerts as expected.
1. On a device, go to https://smartscreentestratings2.net. Defender for Business should block that URL on the user's device.
-2. As a member of your organization's security team, go to the Microsoft Defender portal (https://security.microsoft.com) and sign in.
+2. As a member of your organization's security team, go to the [Microsoft Defender portal](https://security.microsoft.com) and sign in.
3. In the navigation pane, go to **Incidents**. You should see an informational alert that indicates a device tried to access a phishing site.\ No newline at end of file 