Specify the types of events Windows Installer records in its transaction log
Spécifier les types d’événement que Windows Installer enregistre dans son journal des transactions
Explanation
Specifies the types of events that Windows Installer records in its transaction log for each installation. The log, Msi.log, appears in the Temp directory of the system volume.
When you enable this policy setting, you can specify the types of events you want Windows Installer to record. To indicate that an event type is recorded, type the letter representing the event type. You can type the letters in any order and list as many or as few event types as you want.
To disable logging, delete all of the letters from the box.
If you disable or do not configure this policy setting, Windows Installer logs the default event types, represented by the letters "iweap."
Spécifie les types d’événement que Windows Installer enregistre dans son journal de transaction pour chaque installation. Le fichier journal, Msi.log, apparaît dans le répertoire Temp du volume système.
Lorsque vous activez ce paramètre de stratégie, vous pouvez spécifier les types d’événement que vous voulez que Windows Installer enregistre. Pour indiquer qu’un type d’événement doit être enregistré, entrez la lettre représentant le type d’événement. Vous pouvez entrer les lettres dans le désordre et indiquer autant de types d’événement que vous le souhaitez.
Pour désactiver l’enregistrement dans le journal, supprimez toutes les lettres de la zone.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, Windows Installer enregistre les types d’événement par défaut, représentés par les lettres « iweap ».
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer- 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: MSI/MSILogging
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Logging
Set-ItemProperty -Path $k -Name 'Logging' -Value '<value>' -Type StringDisable
# Disable: MSI/MSILogging
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": MSI/MSILogging
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
Remove-ItemProperty -Path $k -Name 'Logging' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| LoggingEnregistrementMSILogging | Text boxtext | Logging | REG_SZ | Default (UI): iweap |