Turn on logging
Supported on: At least Windows Vista
Registry
HKLM
Software\Policies\Microsoft\Windows\EventLog\Setup Value name: Enabled
Enabled: Enabled = 1
Disabled: Enabled = 0
Description
This policy setting turns on logging. If you enable or do not configure this policy setting, then events can be written to this log. If the policy setting is disabled, then no new events can be logged. Events can always be read from the log, regardless of this policy setting.