Domain controller: Allow computer account re-use during domain join: registry value ComputerAccountReuseAllowListComputerHKLM\System\CurrentControlSet\Control\SAM
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
ComputerAccountReuseAllowList
REG_DWORDComputerHKLM\System\CurrentControlSet\Control\SAM Current key
- Enabled value
- Depends on the option value
- Element
- Domain controller: Allow computer account re-use during domain join
- Value type
- REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SAM] "ComputerAccountReuseAllowList"=dword:<enter value>
CMD
reg add "HKLM\System\CurrentControlSet\Control\SAM" /v "ComputerAccountReuseAllowList" /t REG_DWORD /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\System\CurrentControlSet\Control\SAM' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\SAM' -Name 'ComputerAccountReuseAllowList' -PropertyType DWord -Value '<enter value>' -Force | Out-Null