Open in the explorer

Disable MDM Enrollment

Désactiver l’inscription GPM

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › MDM FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › GPM
Supported on
At least Windows 10 FR: Au minimum Windows 10
ADMX file
MDM.admx
Internal name
MDM/MDM_MDM_DisplayName

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.

French text from Windows 11 26H2

Ce paramètre de stratégie indique si l’inscription à la gestion des périphériques mobiles (GPM) est autorisée. Lorsque l’option GPM est activée, elle permet à l’utilisateur de faire en sorte que son ordinateur soit géré à distance par un serveur GPM.

Si vous ne configurez pas ce paramètre de stratégie, l’inscription à GPM sera activée.

Si vous activez ce paramètre de stratégie, l’inscription à GPM sera désactivée pour tous les utilisateurs. Cela n’annulera pas les inscriptions GPM existantes.

Si vous désactivez ce paramètre de stratégie, l’inscription à GPM sera activée pour tous les utilisateurs.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\MDM
Value name
DisableRegistration
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: MDM/MDM_MDM_DisplayName
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableRegistration' -Value 1 -Type DWord

Disable

# Disable: MDM/MDM_MDM_DisplayName
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableRegistration' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": MDM/MDM_MDM_DisplayName
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM'
Remove-ItemProperty -Path $k -Name 'DisableRegistration' -ErrorAction SilentlyContinue

Availability