Ouvrir dans l'explorateur

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

Troubleshooting: Allow users to access and run Troubleshooting Wizards

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Système › Dépannage et diagnostics › Diagnostics à base de script EN : Computer Configuration › Policies › Administrative Templates › System › Troubleshooting and Diagnostics › Scripted Diagnostics
Pris en charge sur
Au minimum Windows Server 2008 R2 ou Windows 7 EN : At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
sdiageng.admx
Nom interne
sdiageng/ScriptedDiagnosticsExecutionPolicy

Explication

Texte français issu de 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.

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.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScriptedDiagnostics
Nom de la valeur
EnableDiagnostics
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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

Désactiver

# Désactiver : 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

Revenir à « Non configuré »

# Revenir à « Non configuré » : sdiageng/ScriptedDiagnosticsExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScriptedDiagnostics'
Remove-ItemProperty -Path $k -Name 'EnableDiagnostics' -ErrorAction SilentlyContinue

Disponibilité