Ouvrir dans l'explorateur

Définir le chemin d’accès au répertoire de copie des fichiers journaux de support

Define the directory path to copy support log files

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus
Pris en charge sur
Windows Server 2016, Windows 10 version 1607 ou versions supérieures EN : At least Windows Server 2016, Windows 10 Version 1607
Fichier ADMX
WindowsDefender.admx
Nom interne
WindowsDefender/SupportLogLocation

Explication

Texte français issu de Windows 11 26H2

Ce paramètre de stratégie vous permet de configurer le chemin d’accès au répertoire dans lequel les fichiers journaux du support seront copiés. La valeur de ce paramètre doit être un chemin d’accès de répertoire valide.

Si vous activez ce paramètre, les fichiers journaux du support sont copiés dans le chemin d’accès au Journal de support spécifié.

Si vous désactivez ce paramètre ou ne le configurez pas, les fichiers journaux de support ne sont copiés à aucun emplacement.

This policy setting allows you to configure the directory path where the support log files would be copied to. The value of this setting should be a valid directory path.

If you enable this setting, the support log files will be copied to the specified support log location path.

If you disable or do not configure this setting, the support logs files will not be copied to any location.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

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 : WindowsDefender/SupportLogLocation
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Définir le chemin d’accès au répertoire de copie des fichiers journaux de support
Set-ItemProperty -Path $k -Name 'SupportLogLocation' -Value '<valeur>' -Type String

Désactiver

# Désactiver : WindowsDefender/SupportLogLocation
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : WindowsDefender/SupportLogLocation
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
Remove-ItemProperty -Path $k -Name 'SupportLogLocation' -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Définir le chemin d’accès au répertoire de copie des fichiers journaux de supportDefine the directory path to copy support log filesSupportLogLocationZone de textetextSupportLogLocationREG_SZ
Obligatoire

Disponibilité

Windows 10

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

Windows Server