Open in the explorer

Troubleshooting: Allow users to access recommended troubleshooting for known problems

Dépannage : autoriser les utilisateurs à accéder au dépannage recommandé pour les problèmes connus

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Troubleshooting and Diagnostics › Microsoft Support Diagnostic Tool FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Dépannage et diagnostics › Outil de diagnostic du Support Microsoft
Supported on
At least Windows Server 2016, Windows 10 Version 1903 FR: Windows Server 2016, Windows 10 version 1903 ou versions supérieures
ADMX file
MSDT.admx
Internal name
MSDT/TroubleshootingAllowRecommendations

Explanation

This policy setting configures how troubleshooting for known problems can be applied on the device and lets administrators configure how it's applied to their domains/IT environments.

Not configuring this policy setting will allow the user to configure how troubleshooting is applied.

Enabling this policy allows you to configure how troubleshooting is applied on the user's device. You can select from one of the following values:
0 = Do not allow users, system features, or Microsoft to apply troubleshooting.
1 = Only automatically apply troubleshooting for critical problems by system features and Microsoft.
2 = Automatically apply troubleshooting for critical problems by system features and Microsoft. Notify users when troubleshooting for other problems is available and allow users to choose to apply or ignore.
3 = Automatically apply troubleshooting for critical and other problems by system features and Microsoft. Notify users when troubleshooting has solved a problem.
4 = Automatically apply troubleshooting for critical and other problems by system features and Microsoft. Do not notify users when troubleshooting has solved a problem.
5 = Allow the user to choose their own troubleshooting settings.

After setting this policy, you can use the following instructions to check devices in your domain for available troubleshooting from Microsoft:
1. Create a bat script with the following contents:
rem The following batch script triggers Recommended Troubleshooting
schtasks /run /TN "\Microsoft\Windows\Diagnosis\RecommendedTroubleshootingScanner"

2. To create a new immediate task, navigate to the Group Policy Management Editor > Computer Configuration > Preferences and select Control Panel Settings.
3. Under Control Panel settings, right-click on Scheduled Tasks and select New. Select Immediate Task (At least Windows 7).
4. Provide name and description as appropriate, then under Security Options set the user account to System and select the Run with highest privileges checkbox.
5. In the Actions tab, create a new action, select Start a Program as its type, then enter the file created in step 1.
6. Configure the task to deploy to your domain.

French text from Windows 11 26H2

Ce paramètre de stratégie configure le mode de résolution des problèmes connus à appliquer sur l’appareil et permet aux administrateurs de configurer la manière dont ils sont appliqués à leurs domaines/environnements informatiques.

Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut configurer la façon dont la résolution des problèmes est appliquée.

L’activation de cette stratégie permet de configurer la manière dont la résolution des problèmes est appliquée sur l’appareil de l’utilisateur. Vous pouvez sélectionner l’une des valeurs suivantes :
0 = Ne pas autoriser les utilisateurs, les fonctionnalités du système ou Microsoft à appliquer la résolution des problèmes
1 = Uniquement appliquer automatiquement la résolution des problèmes pour les problèmes critiques par les fonctionnalités du système et Microsoft
2 = Appliquer automatiquement la résolution des problèmes pour les problèmes critiques des fonctionnalités du système et de Microsoft. Avertissez les utilisateurs lorsque la résolution des problèmes pour d’autres problèmes est disponible et autorisez les utilisateurs à choisir d’appliquer ou d’ignorer.
3 = Appliquer automatiquement la résolution des problèmes pour les problèmes critiques et d’autres problèmes des fonctionnalités du système et de Microsoft. Avertir les utilisateurs lorsque le dépannage a résolu un problème.
4 = Appliquer automatiquement la résolution des problèmes pour les problèmes critiques et d’autres problèmes des fonctionnalités du système et de Microsoft. Ne pas avertir les utilisateurs lorsque la résolution des problèmes a résolu un problème.
5 = Autoriser l’utilisateur à choisir ses propres paramètres de résolution des problèmes.

Après avoir défini cette stratégie, vous pouvez suivre les instructions ci-dessous pour vérifier les appareils de votre domaine à la recherche de problèmes disponibles auprès de Microsoft :
1. Créez un script bat avec le contenu suivant :
rem Les déclencheurs de script de commandes suivants déclenchent la résolution des problèmes recommandés
schtasks /run /TN "\Microsoft\Windows\Diagnosis\RecommendedTroubleshootingScanner"

2. Pour créer une tâche immédiate, accédez à l’Éditeur de gestion des stratégies de groupe > Configuration de l’ordinateur > Préférences, puis sélectionnez Paramètres du panneau de configuration.
3. Sous Paramètres du panneau de configuration, cliquez avec le bouton droit sur Tâches planifiées, puis sélectionnez Nouveau. Sélectionnez Tâche immédiate (au minimum Windows 7).
4. Indiquez le nom et la description, le cas échéant, puis, sous Options de sécurité, mettez le compte utilisateur sur Système et cochez la case Exécuter avec les privilèges les plus élevés.
5. Dans l'onglet Actions, créez une nouvelle action, sélectionnez Démarrer un programme comme son type, puis entrez le fichier créé à l'étape 1.
6. Configurez la tâche à déployer sur votre domaine.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Troubleshooting\AllowRecommendations
Value name
TroubleshootingAllowRecommendations
StateValue written
Enablednot defined in the ADMX (see the options below)
Disablednot 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.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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: MSDT/TroubleshootingAllowRecommendations
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Troubleshooting\AllowRecommendations'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'TroubleshootingAllowRecommendations' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)
# Allow recommended troubleshooting from Microsoft for known problems
# Possible options:
#   Do not allow users, system features, or Microsoft to apply troubleshooting. = 0
#   Only automatically apply troubleshooting for critical problems by system features and Microsoft. = 1
#   Automatically apply troubleshooting for critical problems by system features and Microsoft. Notify users when troubleshooting for other problems is available and allow users to choose to apply or ignore. = 2
#   Automatically apply troubleshooting for critical and other problems by system features and Microsoft. Notify users when troubleshooting has solved a problem. = 3
#   Automatically apply troubleshooting for critical and other problems by system features and Microsoft. Do not notify users when troubleshooting has solved a problem. = 4
#   Allow the user to choose their own troubleshooting settings. = 5
Set-ItemProperty -Path $k -Name 'TroubleshootingAllowRecommendations' -Value 0 -Type DWord

Disable

# Disable: MSDT/TroubleshootingAllowRecommendations
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Troubleshooting\AllowRecommendations'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'TroubleshootingAllowRecommendations' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": MSDT/TroubleshootingAllowRecommendations
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Troubleshooting\AllowRecommendations'
Remove-ItemProperty -Path $k -Name 'TroubleshootingAllowRecommendations' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Allow recommended troubleshooting from Microsoft for known problemsAutoriser le dépannage recommandé de Microsoft pour les problèmes connusTroubleshootingAllowRecommendations_DropdownDrop-down listenumTroubleshootingAllowRecommendationsREG_DWORD
Default choice (UI): #0
LabelValue
Do not allow users, system features, or Microsoft to apply troubleshooting.REG_DWORD = 0
Only automatically apply troubleshooting for critical problems by system features and Microsoft.REG_DWORD = 1
Automatically apply troubleshooting for critical problems by system features and Microsoft. Notify users when troubleshooting for other problems is available and allow users to choose to apply or ignore.REG_DWORD = 2
Automatically apply troubleshooting for critical and other problems by system features and Microsoft. Notify users when troubleshooting has solved a problem.REG_DWORD = 3
Automatically apply troubleshooting for critical and other problems by system features and Microsoft. Do not notify users when troubleshooting has solved a problem.REG_DWORD = 4
Allow the user to choose their own troubleshooting settings.REG_DWORD = 5

Availability

Windows 10

✓ 22H2✓ 21H2✓ 21H1✓ 20H2✓ 2004changed✓ 1909✓ 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server