Register domain joined computers as devices
Enregistrer les ordinateurs appartenant à un domaine en tant qu'appareils
Explanation
This setting lets you configure how domain joined computers become registered as devices.
When you enable this setting, domain joined computers automatically and silently get registered as devices with Azure Active Directory.
Note: Additional requirements may apply on certain Windows SKUs. Refer to Azure Active Directory Device Registration Overview.
http://go.microsoft.com/fwlink/?LinkId=307136
Ce paramètre vous permet de configurer la façon dont les ordinateurs appartenant à un domaine sont enregistrés comme appareils.
Si ce paramètre est activé, les ordinateurs appartenant à un domaine sont automatiquement enregistrés en tant qu'appareils auprès d'Azure Active Directory.
Remarque : des conditions supplémentaires peuvent s'appliquer sur certaines références Windows. Reportez-vous à la documentation d'Azure Active Director portant sur l'enregistrement d'appareils.
http://go.microsoft.com/fwlink/?LinkId=307136
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WorkplaceJoin- Value name
autoWorkplaceJoin
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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: WorkplaceJoin/WJ_AutoJoin
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WorkplaceJoin'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'autoWorkplaceJoin' -Value 1 -Type DWordDisable
# Disable: WorkplaceJoin/WJ_AutoJoin
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WorkplaceJoin'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'autoWorkplaceJoin' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WorkplaceJoin/WJ_AutoJoin
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WorkplaceJoin'
Remove-ItemProperty -Path $k -Name 'autoWorkplaceJoin' -ErrorAction SilentlyContinue