Open in the explorer

Prevent access to registry editing tools

Empêche l’accès aux outils de modifications du Registre

Type
User
GPO path
User Configuration › Policies › Administrative Templates › System FR: Configuration utilisateur › Stratégies › Modèles d'administration › Système
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
Shell-CommandPrompt-RegEditTools.admx
Internal name
Shell-CommandPrompt-RegEditTools/DisableRegedit

Explanation

Disables the Windows registry editor Regedit.exe.

If you enable this policy setting and the user tries to start Regedit.exe, a message appears explaining that a policy setting prevents the action.

If you disable this policy setting or do not configure it, users can run Regedit.exe normally.

To prevent users from using other administrative tools, use the "Run only specified Windows applications" policy setting.

French text from Windows 11 26H2

Désactive l’éditeur de Registre Windows Regedit.exe.

Si vous activez ce paramètre de stratégie et que l’utilisateur essaie de démarrer Regedit.exe, un message s’affiche pour expliquer qu’un paramètre de stratégie bloque l’action.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent exécuter Regedit.exe normalement.

Pour empêcher les utilisateurs d’utiliser d’autres outils d’administration, utilisez le paramètre de stratégie « Exécuter uniquement les applications Windows spécifiées ».

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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: Shell-CommandPrompt-RegEditTools/DisableRegedit
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disable regedit from running silently?
# Possible options:
#   Yes = 2
#   No = 1
Set-ItemProperty -Path $k -Name 'DisableRegistryTools' -Value 2 -Type DWord

Disable

# Disable: Shell-CommandPrompt-RegEditTools/DisableRegedit
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Shell-CommandPrompt-RegEditTools/DisableRegedit
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
Remove-ItemProperty -Path $k -Name 'DisableRegistryTools' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Disable regedit from running silently?Désactiver l’exécution silencieuse de regedit.exe ?DisableRegeditModeDrop-down listenumDisableRegistryToolsREG_DWORD
Default choice (UI): #0
LabelValue
YesREG_DWORD = 2
NoREG_DWORD = 1

Availability