Habilitar registro MDM automático usando as credenciais padrão do Azure AD: valor do Registro AutoEnrollMDM e mais 2ComputadorHKLM\Software\Policies\Microsoft\Windows\CurrentVersion\MDM
- ID da política
- MDM_JoinMDM_DisplayName
- Escopo
- Configuração do Computador
- Compatível com
- Pelo menos Windows 10
- Fonte
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
- Categoria
- Componentes do Windows › MDM
Registro
AutoEnrollMDM
REG_DWORDComputador- Valor habilitado
- 1
- Valor desabilitado
- 0
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\MDM] ; Opções (use apenas uma) ; Habilitada "AutoEnrollMDM"=dword:00000001 ; Desabilitada "AutoEnrollMDM"=dword:00000000
CMD
:: Opções (use apenas uma) :: Habilitada reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "AutoEnrollMDM" /t REG_DWORD /d 1 /f :: Desabilitada reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "AutoEnrollMDM" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Force | Out-Null # Opções (use apenas uma) # Habilitada New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Name 'AutoEnrollMDM' -PropertyType DWord -Value 1 -Force | Out-Null # Desabilitada New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Name 'AutoEnrollMDM' -PropertyType DWord -Value 0 -Force | Out-Null
UseAADCredentialType
REG_DWORDComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- Selecionar Tipo de Credencial a Ser Usado:
| Item | Valor armazenado |
|---|---|
| Credencial do Usuário | 1 |
| Credencial do Dispositivo | 2 |
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\MDM] ; Opções (use apenas uma) ; Credencial do Usuário "UseAADCredentialType"=dword:00000001 ; Credencial do Dispositivo "UseAADCredentialType"=dword:00000002
CMD
:: Opções (use apenas uma) :: Credencial do Usuário reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "UseAADCredentialType" /t REG_DWORD /d 1 /f :: Credencial do Dispositivo reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "UseAADCredentialType" /t REG_DWORD /d 2 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Force | Out-Null # Opções (use apenas uma) # Credencial do Usuário New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Name 'UseAADCredentialType' -PropertyType DWord -Value 1 -Force | Out-Null # Credencial do Dispositivo New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Name 'UseAADCredentialType' -PropertyType DWord -Value 2 -Force | Out-Null
MDMApplicationId
REG_SZComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- ID do aplicativo MDM:
- Tipo de valor
- REG_SZ
- Comprimento máximo
- 255
- Obrigatório
- false
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\MDM] ; Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados "MDMApplicationId"="<inserir valor>"
CMD
:: Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "MDMApplicationId" /t REG_SZ /d "<inserir valor>" /f
PowerShell
# Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\MDM' -Name 'MDMApplicationId' -PropertyType String -Value '<inserir valor>' -Force | Out-Null