Hi
I am trying to create an auto enrollment for my windows 10 desktops into Intune,I have already managed to build all the supported infrastructure and able to register any windows system in our company AD by changing the Local policy using GUI. Now I need to make it automated. I have identified the Registry settings which actually changed during the Local policy change .I created a script as below which will create a registry key and add the two corresponding key words as below.
New-Item -path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\" -Name MDM
New-Itemproperty -path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\MDM" -Name AutoEnrollMDM -Value 1 -Type DWord
New-Itemproperty -path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\MDM" -Name UseAADCredentialType -Value 1 -Type DWord
But Even after successful execution of this script my systems are not getting enrolled into Intune
Can someone please help me on this
-Sachin