SCCM is a great tool for managing your Windows computers. However, if you’re using Intune to manage all your devices, removing the SCCM client and enrolling the device in Intune can be helpful. This article will show you how to silently remove the SCCM client and enroll a device in Intune in three steps:
1. CREATE AN AUTOMATIC LICENSING GROUP
- Create an automatic licensing group
- Set the license to “Auto assign.”
2. CREATE A GPO FOR INTUNE ENROLLMENT
- Create a GPO for enrollment.
- Create a GPO for non-enrollment.
- Please create a new group policy that allows you to enroll devices that have already been enrolled in Intune and then assign it to your users by Active Directory group membership.
- Please create a new group policy that does not allow you to enroll devices (use the same security settings as the one above), add this GPO through Group Policy Management Console (GPMC), and then assign it to your users by Active Directory group membership.
3. REMOVE THE SCCM CLIENT SILENTLY (WITHOUT THE NEED FOR INTERACTION FROM THE END USER’S PERSPECTIVE)
First, import the IntuneManagementShell module:
Import-Module -Name C:\Program Files\Microsoft Configuration Manager\AdminConsole\bin\IntuneManagementShell.psd1
Use the Get-CMSoftwareUpdate cmdlet to retrieve the list of all software updates that need to be removed:
Get-CMSoftwareUpdate -Name “*Windows 10*” | Remove-CMSoftwareUpdate
4. ENROLL THE DEVICE IN INTUNE AND FOLLOW UP
Once you’ve removed the client, you’ll want to create a device collection and add the device to that collection. Once it is added, enroll it in Intune by running the following command:
Powershell Copy Copied $DeviceID = “New-MobileDeviceManagementClient -CollectionName “SCCM Client Removal” -EnrollmentType TurnOnAndEnroll -DeviceID $DevicelD -CommandsToExecuteOnCMDevice enumeratedOrder=0,1,2 -CommandTimeoutInSeconds 30 $DeviceID = “Set-CMClientSetting -Action InstallOrUninstall -CollectionName “SCCM Client Removal” ` -ProgramName MicrosoftDeploymentToolkit\Client\Deployment\MicrosoftDeploymentToolkit\Client\binaries\amd64 \msiexec.exe ` -Arguments “/qb!”` -DisableLogging ` -DisableFeedback ` -LogLevel 2 | Out-Null Start-CMClientOperationRestart –CollectionName “SCCM Client Removal” –ProgramName MicrosoftDeploymentToolkit\Client\Deployment\MicrosoftDeploymentToolkit\Client\) I ran into issues enabling logging on my device, so I edited it out of this script since I don’t need it for troubleshooting. Still, you can reenable that if needed by uncommending this line:
$ScriptBlock = {$ScriptBlock = {Start-Transcript; Enable-Transcript;}} You can also choose whether or not to enable feedback on your computer after running through this process, so uncommenting this line will enable feedback (this is useful if any errors occur):
$ScriptBlock = {$ScriptBlock = {Set-ItemProperty -Path ‘HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection’ -Name “AllowTelemetry” -value 1}}
Conclusion
When you have all the above in place, it’s time to enroll your devices. The easiest method is the Microsoft Intune service, which allows you to manage devices and users from a single console. Depending on your needs and preferences, you can also use other methods, such as Group Policy deployments or PowerShell scripts (which are more advanced).
Why do we use import in Java rather than #include?
We use the import keyword instead of the #include directive in the Java programming language. We will discuss the difference between these two keywords. Java was created to be OS-independent and to be used
What is the difference between Java SE and JDK?
Java is a popular programming language that runs on various devices and platforms. Java is a foundational technology for building many applications and web services, making it an essential skill for any programmer. We
Is it safe to download Java to my computer? Why or why not?
Java is a language that enables you to run applications on your computer. It's also used to create web apps, commonly called "website scripts" or simply "web apps." Java has been around for a
5 reasons to integrate Microsoft Teams and Power BI
Microsoft Teams and Power BI are two of Microsoft's most popular apps. But for many people, they don't go together. "Teams are for chatting," they might say. Or "Power BI is only for reports."
What is Power Query in Microsoft Power BI?
Power Query is a data transformation and analysis tool that helps you extract and transform data from different sources. It's built into Excel so that you can create a wide range of reports and
Top 10 Websites To Learn Automation Testing Courses in 2023
Automation has become a growing field in the IT industry. As more companies adopt automation, there is a high demand for automation testers who can write code that tests applications and websites. With the