How to Deploy SCCM Client from Intune Co-Management

We can install the SCCM client using Intune in a co-management scenario. You can create a “Mobile app” in Intune with the latest SCCM client package and deploy the app to Windows 10 devices that you want to co-manage. SCCM Client via Intune is the topic we are going to cover in this post.

Update – SCCM 1810 onwards the SCCM client installation from the internet via CMG made easy. The SCCM site publishes additional Azure Active Directory (Azure AD) information to the cloud management gateway (CMG). With SCCM 1810 onwards, the only two required ccmsetup properties are CCMHOSTNAME and SMSSiteCode. More details are available in Microsoft documentation.

All in One – How to Setup Co-Management Eight(8) Video Tutorials

Prerequisites to SCCM Client via Intune?

In this post, you can see how to install the SCCM client via Intune in a co-management scenario. I have documented the Co-management prerequisites, and I would recommend reading the post.

Patch My PC
  • The logged on user must be an Azure AD identity.
  • If the user is a federated or synchronized identity (using AAD Sync), you must use SCCM AD user discovery as well as Azure AD user discovery.
  • For the management point site system role, also enable ASP.NET 4.5 on this server. You should also include any other options that are automatically selected when enabling ASP.NET 4.5.
  • Cloud Management Gateway (CMG) to deploy Internet-based clients. For on-premises clients that authenticate with Azure AD, you don’t need a CMG.

Video Tutorial Deploy SCCM Client via Intune

How to Configure Client Settings for Co-Managed Devices?

It’s important to set the SCCM client policies for co-managed Windows 10 devices. You need to configure the following SCCM client settings in the Cloud Services section.

Enable Allow access to cloud distribution point - Yes
Automatically register new Windows 10 domain joined devices with Azure AD(AAD) - Yes
Enable clients to use a cloud management gateway - Yes

TIP: To confirm the device is joined to Azure AD (This is NOT applicable for Azure AD registered devices), run dsregcmd. exe /status in a command prompt. The AzureAdjoined field in the results shows YES if the device is Azure AD-joined.

How to Install SCCM Client Manually on Intune Managed Devices?

You can install the SCCM client manually with the following command line even if Intune already manages your Windows 10 device. Another method to install the SCCM clients is to automate the client install using Azure AD identity via Microsoft Intune (this is explained in the next section of this post).

The following example shows the general structure of the command line:

Adaptiva
ccmsetup.exe /mp:<source management point> CCMHOSTNAME=<internet-based management point> SMSSiteCode=<site code> SMSMP=<initial management point> AADTENANTID=<Azure AD tenant identifier> AADCLIENTAPPID=<Azure AD client app identifier> AADRESOURCEURI=<Azure AD server app identifier>

More details about command-line properties.

The /mp and CCMHOSTNAME properties specify one of the following, depending upon the scenario:-
– On-premises management point. Only specify the /mp property. The CCMHOSTNAME isn’t required.
– Cloud management gateway
– Internet-based management point The SMSMP property specifies either the on-premises or Internet-based management point.

This example uses a cloud management gateway. It substitutes sample values for each property:-

ccmsetup.exe /mp:https://CONTOSO.CLOUDAPP.NET/CCM_Proxy_MutualAuth/72186325152220500 CCMHOSTNAME=CONTOSO.CLOUDAPP.NET/CCM_Proxy_MutualAuth/72186325152220500 SMSSiteCode=ABC SMSMP=https://mp1.contoso.com AADTENANTID=daf4a1c2-3a0c-401b-966f-0b855d3abd1a AADCLIENTAPPID=7506ee10-f7ec-415a-b415-cd3d58790d97 AADRESOURCEURI=https://contososerver

How to Automatically Install or Deploy SCCM Client via Intune?

For Windows 10 (1709 or later) devices that are enrolled in Intune and don’t have the SCCM client, you can create an app in Intune to deploy the SCCM client. The command line of this installation of SCCM client is very important in this section.

The SCCM team is continuously reducing the complexity of the command line used for installing SCCM clients via Intune. The latest updates in the command line using CMG are explained in the following blog about SCCM TP 1806.

The following steps are explained in the video tutorial on How to deploy an SCCM client from Intune.

  1. Login to Azure portal https://portal.azure.com
  2. Navigate via Microsoft Intune – Mobile Apps – Apps
  3. Click on +Add to add a new Intune application for SCCM client installation
  4. Select Line-of-Business app – App Type drop-down menu from Add app blade
  5. Click on App Package File to upload the SCCM client CCMSetup.MSI (use the latest version of the SCCM client) file to Intune

On the App package file blade checkout the following settings  Name: ConfigMgr Client Setup Bootstrap
Platform: Windows
App version: 5.00.8634.1000    (1802 production version without hotfix)
Size: 4.85 MiB
MAM Enabled: No
Execution Context: Per-Machine

Click on the OK button on the App Package file blade.

Click on the App Information option from Add App blade.

Fill the following information details in App Information blade Name:-ConfigMgr Client Setup Bootstrap (Any useful name is fine)
Description:- SCCM Client Install from Intune (Any useful description is fine)
Publisher:- Microsoft
Ignore App Version:- No
Category: Computer Management
Display this as a featured app in the Company Portal – NO
Information URL:- Optional (I kept it blank)
Privacy URL:- Optional (I kept it blank)
Command-line Argument:- Command-Line is explained below
Developer:- Optional (I kept it blank)
Owner:- Optional (I kept it blank)
Notes:- Optional (I kept it blank)
Logo:- Optional (I kept it blank)

Click OK and Click Add to start the upload the CCMSetup.msi to Intune. This upload is going to take 10 minutes to complete. Wait for the following message to go away 😉 Your app is not ready yet. Check back again soon

Click on Add Group button on the Assignment tab of the mobile application which you created.

Select groups where you want to assign this app from Add Group blade There are 3 (three) Assignment types – Select one assignment type. In the co-management scenario, I would like to deploy this SCCM client app to some group of devices as REQUIRED app. Available for Enrolled Devices Required Uninstall

Click on Included groups from Add Group blade

Select the groups where you want to make this app required from Assign blade
Select the following options underneath – All Users and Devices
Make this app required for all users – No
Make this app required on all devices – No

Click on Select Groups to select a Group for the required assignment from Assign blade

Search the Device Group (co-managed devices as per your requirement) in the search option in the Select Groups blade and select the DEVICE group which you want to deploy

Click Select to save and close the Select Groups blade. Click OK to save and close the Assign blade. Click OK to save and close Add Group blade. Click SAVE to save the Assignment blade.

Command Line – SCCM Client Application Installation

Command-Line which I used in the lab environment to test the SCCM client install from Intune is below. It may require some modifications in your production deployments or scenarios. I would recommend reading Microsoft documentation to have more guidance on this topic.

CCMSETUPCMD (MSI installation?) – Specifies command-line parameters and properties that are passed to ccmsetup. exe after ccmsetup.msi installs it. Use this property when bootstrapping the SCCM client using the Intune MDM installation method.  Microsoft Intune limits the command line to 1024 characters.

You can get the command line details of your environment from SCCM co-management configuration properties. But I recommend adding some additional parameters like NOCRLCHECK for your lab environment.

CCMSETUPCMD="/nocrlcheck /mp:https://ACMCMG01.CLOUDAPP.NET/CCM_Proxy_MutualAuth/7278792237927944 CCMHTTPSSTATE=31 CCMHOSTNAME=ACMCMG01.CLOUDAPP.NET/CCM_Proxy_MutualAuth/72057594037927944 SMSSiteCode=PR3 SMSMP=https://SCCM_PROD.INTUNE.COM AADTENANTID=67BB8C6D-23466-4FAA-A290-5DHFGFLC2210 AADCLIENTAPPID=046cb662-0208-4adb-8118-4be4bc132bc2 AADRESOURCEURI=https://ConfigMgrService1 SMSPublicRootKey=0602000000A400005253413662EE6389AE91CD393D138517092EE5502855B1549BD4"
Azure AD client app ID: 046cb662-0208-4adb-8118-4be4bc132bc2
AAD Resource ID URI: https://ConfigMgrService1
SMSPUBLICROOTKEY: Specifies the SCCM trusted root key when it cannot be retrieved from AD Domain Services

From where the SCCM Client will get Downloaded?

In the above-mentioned scenario, the SCCM client will get downloaded from Cloud DP. This behavior is changing checkout the latest TP blog from me for more details. There won’t any requirement for a separate cloud DP in the future versions of SCCM.

If the content isn’t available on the Cloud DP, devices can retrieve the content from the CMG. The client installation bootstrap retries the cloud distribution point for four hours before it falls back to the CMG. More details here.

Co-Management Related Posts

All Co-Management Video tutorials in one post here.

Overview Windows 10 Co-Management with Intune and SCCM 
Custom Report to Identify Machines Connected via SCCM CMG  
How to Setup Co-Management - Introduction - Prerequisites Part 1 
How to Setup Co-Management - Firewall Ports Proxy Requirements Part 2 
Setup Co-Management - AAD Connect UPN Suffix Part 3 
Setup Co-Management - CA PKI & Certificates Part 4 
Setup Co-Management Cloud DP Azure Blob Storage Part 5 
Setup Co-Management Azure Cloud Services CMG Part 6
SCCM Configure Settings for Client PKI certificates Part 7
How to Setup SCCM Co-Management to Offload Workloads to Intune - Part 8
How to Deploy SCCM Client from Intune - Co-Management - Part 9 (This Post)
End User Experience of Windows 10 Co-Management - Part 10

Resources:- 

Co-Management ==> Command line to install SCCM client 

SCCM Client (Manual) Install for Azure AD Joined devices

SCCM Client installation parameters and properties

13 thoughts on “How to Deploy SCCM Client from Intune Co-Management”

  1. would be great to know how you built this string:
    CCMSETUPCMD=”/nocrlcheck /mp:https://ACMCMG01.CLOUDAPP.NET/CCM_Proxy_MutualAuth/7278792237927944 CCMHTTPSSTATE=31 CCMHOSTNAME=ACMCMG01.CLOUDAPP.NET/CCM_Proxy_MutualAuth/72057594037927944 SMSSiteCode=PR3 SMSMP=https://SCCM_PROD.INTUNE.COM AADTENANTID=67BB8C6D-23466-4FAA-A290-5DHFGFLC2210 AADCLIENTAPPID=046cb662-0208-4adb-8118-4be4bc132bc2 AADRESOURCEURI=https://ConfigMgrService1 SMSPublicRootKey=0602000000A400005253413662EE6389AE91CD393D138517092EE5502855B1549BD4″

    specically, where the values came from.

    great info though! thanks

    Reply
  2. Hello Anoob,

    We have one issue here related to Co management, we configured hybrid Azure AD join with intune auto enrollment, in intune, I can see that clients are in co-management mode although we deleted the sccm agent from the clients along with all registry keys WMI name spaces and folder.

    My question, why intune is still detecting clients in co management mode?

    Reply
  3. Hello Anoop,
    I am in a dilemma and cant figure out the right approach. we have domain joined windows 10 clients currently managed by sccm for apps and updates. our requirement is to have some of the mobile devices like laptops and tablets to be managed by intune for apps, updates and company resources etc. I was told by a Microsoft support engineer that I need to enable co-management to be able to manage domain joined devices… there is no other way. Appreciate your guidance.

    regards
    AMK

    Reply
  4. Where do I go input the Command Line – SCCM Client Application Installation at? Is this done in Azure portal, or on the SCCM machine itself?

    Reply
  5. So, if the CM client app is assigned from Intune to devices that already have the CM client via another method, what happens the app? Is it smart enough to skip the install?

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.