Troubleshooting: Allow users to access and run Troubleshooting Wizards
Dépannage : autoriser les utilisateurs à exécuter les Assistants Dépannage
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.
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
| 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: 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 DWordDisable
# 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 DWordRevert to "Not configured"
# Revert to "Not configured": sdiageng/ScriptedDiagnosticsExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScriptedDiagnostics'
Remove-ItemProperty -Path $k -Name 'EnableDiagnostics' -ErrorAction SilentlyContinue