Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 10
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\MDM |
|---|
| Value name | DisableRegistration |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
This policy setting specifies whether Mobile Device Management (MDM) Enrollment is allowed. When MDM is enabled, it allows the user to have the computer remotely managed by a MDM Server.
If you do not configure this policy setting, MDM Enrollment will be enabled.
If you enable this policy setting, MDM Enrollment will be disabled for all users. It will not unenroll existing MDM enrollments.
If you disable this policy setting, MDM Enrollment will be enabled for all users.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > MDM > Disable MDM Enrollment
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Name 'DisableRegistration' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
ADMX: MDM.admx · policy name MDM_MDM_DisplayName
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows 10
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\MDM |
|---|
| Value name | AutoEnrollMDM |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
| Option | Value | Type | Allowed values |
|---|
| Select Credential Type to Use: | UseAADCredentialType | | 1 (REG_DWORD) = User Credential 2 (REG_DWORD) = Device Credential |
| MDM Application ID: | MDMApplicationId | REG_SZ | Text, up to 255 characters |
What it does (vendor explanation)
This policy setting specifies whether to automatically enroll the device to the Mobile Device Management (MDM) service configured in Azure Active Directory (Azure AD). If the enrollment is successful, the device will remotely managed by the MDM service.
Important: The device must be registered in Azure AD for enrollment to succeed.
If you do not configure this policy setting, automatic MDM enrollment will not be initiated.
If you enable this policy setting, a task is created to initiate enrollment of the device to MDM service specified in the Azure AD.
If you disable this policy setting, MDM will be unenrolled.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > MDM > Enable automatic MDM enrollment using default Azure AD credentials
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Name 'AutoEnrollMDM' -Value 1 -PropertyType DWord -Force
# Select Credential Type to Use:
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Name 'UseAADCredentialType' -Value 1 -PropertyType DWord -Force
# MDM Application ID:
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Name 'MDMApplicationId' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
ADMX: MDM.admx · policy name MDM_JoinMDM_DisplayName