Define the directory path to copy support log files
Définir le chemin d’accès au répertoire de copie des fichiers journaux de support
Explanation
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.
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.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender- Value name
- not defined in the ADMX
Enable / disable values: not 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.
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: WindowsDefender/SupportLogLocation
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Define the directory path to copy support log files
Set-ItemProperty -Path $k -Name 'SupportLogLocation' -Value '<value>' -Type StringDisable
# Disable: WindowsDefender/SupportLogLocation
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsDefender/SupportLogLocation
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender'
Remove-ItemProperty -Path $k -Name 'SupportLogLocation' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Define the directory path to copy support log filesDéfinir le chemin d’accès au répertoire de copie des fichiers journaux de supportSupportLogLocation | Text boxtext | SupportLogLocation | REG_SZ | Required |