Prevent access to registry editing tools
Empêche l’accès aux outils de modifications du Registre
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.
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 DWordDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Disable regedit from running silently?Désactiver l’exécution silencieuse de regedit.exe ?DisableRegeditMode | Drop-down listenum | DisableRegistryTools | REG_DWORD | Default choice (UI): #0
|