Open in the explorer

Troubleshooting: Allow users to access and run Troubleshooting Wizards

Dépannage : autoriser les utilisateurs à exécuter les Assistants Dépannage

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Troubleshooting and Diagnostics › Scripted Diagnostics FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Dépannage et diagnostics › Diagnostics à base de script
Supported on
At least Windows Server 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
sdiageng.admx
Internal name
sdiageng/ScriptedDiagnosticsExecutionPolicy

Explanation

This policy setting allows users to access and run the troubleshooting tools that are available in the Troubleshooting Control Panel and to run the troubleshooting wizard to troubleshoot problems on their computers.

If you enable or do not configure this policy setting, users can access and run the troubleshooting tools from the Troubleshooting Control Panel.

If you disable this policy setting, users cannot access or run the troubleshooting tools from the Control Panel.

Note that this setting also controls a user's ability to launch standalone troubleshooting packs such as those found in .diagcab files.

French text from Windows 11 26H2

Ce paramètre de stratégie permet aux utilisateurs d’accéder aux outils de dépannage disponibles dans le Panneau de configuration Dépannage et d’exécuter l’Assistant Dépannage afin de résoudre les problèmes sur leurs ordinateurs.

Si vous activez ou ne configurez pas ce paramètre de stratégie, les utilisateurs sont libres d’examiner ou d’exécuter les outils de dépannage proposés dans le Panneau de configuration Dépannage.

Si vous désactivez ce paramètre de stratégie, les utilisateurs n’ont aucun droit d’accès ou d’exécution sur les outils en question.

Ce paramètre gère également la fonction d’exécution des packs de résolution de problèmes autonomes tels que ceux figurant dans les fichiers .diagcab.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScriptedDiagnostics
Value name
EnableDiagnostics
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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: sdiageng/ScriptedDiagnosticsExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScriptedDiagnostics'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableDiagnostics' -Value 1 -Type DWord

Disable

# Disable: sdiageng/ScriptedDiagnosticsExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScriptedDiagnostics'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableDiagnostics' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": sdiageng/ScriptedDiagnosticsExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScriptedDiagnostics'
Remove-ItemProperty -Path $k -Name 'EnableDiagnostics' -ErrorAction SilentlyContinue

Availability