Per machine Windows 11Windows Server 2025
Supported on: At least Windows 11 22H1 (from the template reference name SUPPORTED_Windows_11_0_22H1)
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog |
|---|
| Value name | EnableRemoteRpcAccessRestrictions |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
| Option | Value | Type | Allowed values |
|---|
| Pick one of the following settings: | RpcAccess_Remote_Setting | | 0 (REG_DWORD) = Authenticated Users 1 (REG_DWORD) = Event Log Readers 2 (REG_DWORD) = Administrators |
What it does (vendor explanation)
This policy setting controls which remote users will be allowed to connect to the Event Log service on this machine.
If you enable this policy, you can restrict which group remote users must be a member of in order to connect to the Event Log Service on this machine. You can require that remote users be a member of one of the following builtin groups:
• Authenticated Users
• EventLog Readers
• Administrators
If you disable or do not configure this policy, the default value will be Authenticated Users.
For prior versions of Windows, only Authenticated Users was supported. To maintain backwards compatability, local connections to the service will always be allowed from Authenticated Users.
This setting does not control access to individual logs. Once a remote connection is allowed, it will still need access to the specific resources it is attempting to use.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Limit remote access to the Event Log Service
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Name 'EnableRemoteRpcAccessRestrictions' -Value 1 -PropertyType DWord -Force
# Pick one of the following settings:
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Name 'RpcAccess_Remote_Setting' -Value 0 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name RpcAccess_Remote
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Application |
|---|
| Value name | AutoBackupLogFiles |
|---|
| Enabled writes | 1 (REG_SZ) |
|---|
| Disabled writes | 0 (REG_SZ) |
|---|
What it does (vendor explanation)
This policy setting controls Event Log behavior when the log file reaches its maximum size and takes effect only if the "Retain old events" policy setting is enabled.
If you enable this policy setting and the "Retain old events" policy setting is enabled, the Event Log file is automatically closed and renamed when it is full. A new file is then started.
If you disable this policy setting and the "Retain old events" policy setting is enabled, new events are discarded and old events are retained.
If you do not configure this policy setting and the "Retain old events" policy setting is enabled, new events are discarded and the old events are retained.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Application > Back up log automatically when full
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Application' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Application' -Name 'AutoBackupLogFiles' -Value '1' -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_AutoBackup_1
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Application |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log Access | ChannelAccess | REG_SZ | Text |
What it does (vendor explanation)
This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string.
If you enable this policy setting, only those users matching the security descriptor can access the log.
If you disable or do not configure this policy setting, all authenticated users and system services can write, read, or clear this log.
Note: If you enable this policy setting, some tools and APIs may ignore it. The same change should be made to the "Configure log access (legacy)" policy setting to enforce this change across all tools and APIs.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Application > Configure log access
PowerShell equivalent (generated from the template)
# Log Access
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Application' -Name 'ChannelAccess' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_FileLogAccess_1
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: The value can stay behind (tattoo): this policy writes outside the Policies branches. Set it to the value you want left, let it apply, then remove the GPO. How cleanup works
| Registry key | HKLM\System\CurrentControlSet\Services\EventLog\Application |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log Access | CustomSD | REG_SZ | Text |
What it does (vendor explanation)
This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string. You must set both "configure log access" policy settings for this log in order to affect the both modern and legacy tools.
If you enable this policy setting, only those users matching the security descriptor can access the log.
If you disable this policy setting, all authenticated users and system services can write, read, or clear this log.
If you do not configure this policy setting, the previous policy setting configuration remains in effect.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Application > Configure log access (legacy)
PowerShell equivalent (generated from the template)
# Log Access
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\EventLog\Application' -Name 'CustomSD' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Startup, Run keys and servicesCrash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_FileLogAccess_5
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Application |
|---|
| Value name | Retention |
|---|
| Enabled writes | 1 (REG_SZ) |
|---|
| Disabled writes | 0 (REG_SZ) |
|---|
What it does (vendor explanation)
This policy setting controls Event Log behavior when the log file reaches its maximum size.
If you enable this policy setting and a log file reaches its maximum size, new events are not written to the log and are lost.
If you disable or do not configure this policy setting and a log file reaches its maximum size, new events overwrite old events.
Note: Old events may or may not be retained according to the "Backup log automatically when full" policy setting.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Application > Control Event Log behavior when the log file reaches its maximum size
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Application' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Application' -Name 'Retention' -Value '1' -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_Retention_1
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Application |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log File Path | File | REG_SZ | Text |
What it does (vendor explanation)
This policy setting controls the location of the log file. The location of the file must be writable by the Event Log service and should only be accessible to administrators.
If you enable this policy setting, the Event Log uses the path specified in this policy setting.
If you disable or do not configure this policy setting, the Event Log uses the folder %SYSTEMROOT%\System32\winevt\Logs.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Application > Control the location of the log file
PowerShell equivalent (generated from the template)
# Log File Path
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Application' -Name 'File' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_LogFilePath_1
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Application |
|---|
| Option | Value | Type | Allowed values |
|---|
| Maximum Log Size (KB) | MaxSize | REG_DWORD | Number 1024 to 2147483647 |
What it does (vendor explanation)
This policy setting specifies the maximum size of the log file in kilobytes.
If you enable this policy setting, you can configure the maximum log file size to be between 1 megabyte (1024 kilobytes) and 2 terabytes (2147483647 kilobytes), in kilobyte increments.
If you disable or do not configure this policy setting, the maximum size of the log file will be set to the locally configured value. This value can be changed by the local administrator using the Log Properties dialog, and it defaults to 1 megabyte.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Application > Specify the maximum log file size (KB)
PowerShell equivalent (generated from the template)
# Maximum Log Size (KB)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Application' -Name 'MaxSize' -Value <value> -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_LogMaxSize_1
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Security |
|---|
| Value name | AutoBackupLogFiles |
|---|
| Enabled writes | 1 (REG_SZ) |
|---|
| Disabled writes | 0 (REG_SZ) |
|---|
What it does (vendor explanation)
This policy setting controls Event Log behavior when the log file reaches its maximum size and takes effect only if the "Retain old events" policy setting is enabled.
If you enable this policy setting and the "Retain old events" policy setting is enabled, the Event Log file is automatically closed and renamed when it is full. A new file is then started.
If you disable this policy setting and the "Retain old events" policy setting is enabled, new events are discarded and old events are retained.
If you do not configure this policy setting and the "Retain old events" policy setting is enabled, new events are discarded and the old events are retained.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Security > Back up log automatically when full
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security' -Name 'AutoBackupLogFiles' -Value '1' -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Security hardeningCrash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_AutoBackup_2
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Security |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log Access | ChannelAccess | REG_SZ | Text |
What it does (vendor explanation)
This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string. You cannot configure write permissions for this log. You must set both "configure log access" policy settings for this log in order to affect the both modern and legacy tools.
If you enable this policy setting, only those users whose security descriptor matches the configured specified value can access the log.
If you disable or do not configure this policy setting, only system software and administrators can read or clear this log.
Note: If you enable this policy setting, some tools and APIs may ignore it. The same change should be made to the "Configure log access (legacy)" policy setting to enforce this change across all tools and APIs.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Security > Configure log access
PowerShell equivalent (generated from the template)
# Log Access
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security' -Name 'ChannelAccess' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Security hardeningCrash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_FileLogAccess_2
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: The value can stay behind (tattoo): this policy writes outside the Policies branches. Set it to the value you want left, let it apply, then remove the GPO. How cleanup works
| Registry key | HKLM\System\CurrentControlSet\Services\EventLog\Security |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log Access | CustomSD | REG_SZ | Text |
What it does (vendor explanation)
This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string. You cannot configure write permissions for this log.
If you enable this policy setting, only those users whose security descriptor matches the configured specified value can access the log.
If you disable this policy setting, only system software and administrators can read or clear this log.
If you do not configure this policy setting, the previous policy setting configuration remains in effect.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Security > Configure log access (legacy)
PowerShell equivalent (generated from the template)
# Log Access
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\EventLog\Security' -Name 'CustomSD' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Security hardeningStartup, Run keys and servicesCrash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_FileLogAccess_6
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Security |
|---|
| Value name | Retention |
|---|
| Enabled writes | 1 (REG_SZ) |
|---|
| Disabled writes | 0 (REG_SZ) |
|---|
What it does (vendor explanation)
This policy setting controls Event Log behavior when the log file reaches its maximum size.
If you enable this policy setting and a log file reaches its maximum size, new events are not written to the log and are lost.
If you disable or do not configure this policy setting and a log file reaches its maximum size, new events overwrite old events.
Note: Old events may or may not be retained according to the "Backup log automatically when full" policy setting.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Security > Control Event Log behavior when the log file reaches its maximum size
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security' -Name 'Retention' -Value '1' -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Security hardeningCrash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_Retention_2
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Security |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log File Path | File | REG_SZ | Text |
What it does (vendor explanation)
This policy setting controls the location of the log file. The location of the file must be writable by the Event Log service and should only be accessible to administrators.
If you enable this policy setting, the Event Log uses the path specified in this policy setting.
If you disable or do not configure this policy setting, the Event Log uses the folder %SYSTEMROOT%\System32\winevt\Logs.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Security > Control the location of the log file
PowerShell equivalent (generated from the template)
# Log File Path
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security' -Name 'File' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Security hardeningCrash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_LogFilePath_2
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Security |
|---|
| Option | Value | Type | Allowed values |
|---|
| Maximum Log Size (KB) | MaxSize | REG_DWORD | Number 20480 to 2147483647 |
What it does (vendor explanation)
This policy setting specifies the maximum size of the log file in kilobytes.
If you enable this policy setting, you can configure the maximum log file size to be between 20 megabytes (20480 kilobytes) and 2 terabytes (2147483647 kilobytes), in kilobyte increments.
If you disable or do not configure this policy setting, the maximum size of the log file will be set to the locally configured value. This value can be changed by the local administrator using the Log Properties dialog, and it defaults to 20 megabytes.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Security > Specify the maximum log file size (KB)
PowerShell equivalent (generated from the template)
# Maximum Log Size (KB)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security' -Name 'MaxSize' -Value <value> -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Security hardeningCrash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_LogMaxSize_2
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup |
|---|
| Value name | AutoBackupLogFiles |
|---|
| Enabled writes | 1 (REG_SZ) |
|---|
| Disabled writes | 0 (REG_SZ) |
|---|
What it does (vendor explanation)
This policy setting controls Event Log behavior when the log file reaches its maximum size and takes effect only if the "Retain old events" policy setting is enabled.
If you enable this policy setting and the "Retain old events" policy setting is enabled, the Event Log file is automatically closed and renamed when it is full. A new file is then started.
If you disable this policy setting and the "Retain old events" policy setting is enabled, new events are discarded and old events are retained.
If you do not configure this policy setting and the "Retain old events" policy setting is enabled, new events are discarded and the old events are retained.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Setup > Back up log automatically when full
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'AutoBackupLogFiles' -Value '1' -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_AutoBackup_3
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log Access | ChannelAccess | REG_SZ | Text |
What it does (vendor explanation)
This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string.
If you enable this policy setting, only those users matching the security descriptor can access the log.
If you disable or do not configure this policy setting, all authenticated users and system services can write, read, or clear this log.
Note: If you enable this policy setting, some tools and APIs may ignore it. The same change should be made to the "Configure log access (legacy)" policy setting to enforce this change across all tools and APIs.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Setup > Configure log access
PowerShell equivalent (generated from the template)
# Log Access
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'ChannelAccess' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_FileLogAccess_3
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: The value can stay behind (tattoo): this policy writes outside the Policies branches. Set it to the value you want left, let it apply, then remove the GPO. How cleanup works
| Registry key | HKLM\System\CurrentControlSet\Services\EventLog\Setup |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log Access | CustomSD | REG_SZ | Text |
What it does (vendor explanation)
This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string. You must set both "configure log access" policy settings for this log in order to affect the both modern and legacy tools.
If you enable this policy setting, only those users matching the security descriptor can access the log.
If you disable this policy setting, all authenticated users and system services can write, read, or clear this log.
If you do not configure this policy setting, the previous policy setting configuration remains in effect.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Setup > Configure log access (legacy)
PowerShell equivalent (generated from the template)
# Log Access
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\EventLog\Setup' -Name 'CustomSD' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Startup, Run keys and servicesCrash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_FileLogAccess_7
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup |
|---|
| Value name | Retention |
|---|
| Enabled writes | 1 (REG_SZ) |
|---|
| Disabled writes | 0 (REG_SZ) |
|---|
What it does (vendor explanation)
This policy setting controls Event Log behavior when the log file reaches its maximum size.
If you enable this policy setting and a log file reaches its maximum size, new events are not written to the log and are lost.
If you disable or do not configure this policy setting and a log file reaches its maximum size, new events overwrite old events.
Note: Old events may or may not be retained according to the "Backup log automatically when full" policy setting.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Setup > Control Event Log behavior when the log file reaches its maximum size
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'Retention' -Value '1' -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_Retention_3
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log File Path | File | REG_SZ | Text |
What it does (vendor explanation)
This policy setting controls the location of the log file. The location of the file must be writable by the Event Log service and should only be accessible to administrators.
If you enable this policy setting, the Event Log uses the path specified in this policy setting.
If you disable or do not configure this policy setting, the Event Log uses the folder %SYSTEMROOT%\System32\winevt\Logs.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Setup > Control the location of the log file
PowerShell equivalent (generated from the template)
# Log File Path
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'File' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_LogFilePath_3
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup |
|---|
| Option | Value | Type | Allowed values |
|---|
| Maximum Log Size (KB) | MaxSize | REG_DWORD | Number 1024 to 2147483647 |
What it does (vendor explanation)
This policy setting specifies the maximum size of the log file in kilobytes.
If you enable this policy setting, you can configure the maximum log file size to be between 1 megabyte (1024 kilobytes) and 2 terabytes (2147483647 kilobytes), in kilobyte increments.
If you disable or do not configure this policy setting, the maximum size of the log file will be set to the locally configured value. This value can be changed by the local administrator using the Log Properties dialog, and it defaults to 1 megabyte.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Setup > Specify the maximum log file size (KB)
PowerShell equivalent (generated from the template)
# Maximum Log Size (KB)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'MaxSize' -Value <value> -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_LogMaxSize_3
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup |
|---|
| Value name | Enabled |
|---|
| Enabled writes | 1 (REG_SZ) |
|---|
| Disabled writes | 0 (REG_SZ) |
|---|
What it does (vendor explanation)
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.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Setup > Turn on logging
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'Enabled' -Value '1' -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_LogEnabled
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\System |
|---|
| Value name | AutoBackupLogFiles |
|---|
| Enabled writes | 1 (REG_SZ) |
|---|
| Disabled writes | 0 (REG_SZ) |
|---|
What it does (vendor explanation)
This policy setting controls Event Log behavior when the log file reaches its maximum size and takes effect only if the "Retain old events" policy setting is enabled.
If you enable this policy setting and the "Retain old events" policy setting is enabled, the Event Log file is automatically closed and renamed when it is full. A new file is then started.
If you disable this policy setting and the "Retain old events" policy setting is enabled, new events are discarded and old events are retained.
If you do not configure this policy setting and the "Retain old events" policy setting is enabled, new events are discarded and the old events are retained.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > System > Back up log automatically when full
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Name 'AutoBackupLogFiles' -Value '1' -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_AutoBackup_4
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\System |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log Access | ChannelAccess | REG_SZ | Text |
What it does (vendor explanation)
This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string. You must set both "configure log access" policy settings for this log in order to affect the both modern and legacy tools.
If you enable this policy setting, only users whose security descriptor matches the configured value can access the log.
If you disable or do not configure this policy setting, only system software and administrators can write or clear this log, and any authenticated user can read events from it.
Note: If you enable this policy setting, some tools and APIs may ignore it. The same change should be made to the "Configure log access (legacy)" policy setting to enforce this change across all tools and APIs.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > System > Configure log access
PowerShell equivalent (generated from the template)
# Log Access
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Name 'ChannelAccess' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_FileLogAccess_4
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: The value can stay behind (tattoo): this policy writes outside the Policies branches. Set it to the value you want left, let it apply, then remove the GPO. How cleanup works
| Registry key | HKLM\System\CurrentControlSet\Services\EventLog\System |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log Access | CustomSD | REG_SZ | Text |
What it does (vendor explanation)
This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string.
If you enable this policy setting, only users whose security descriptor matches the configured value can access the log.
If you disable this policy setting, only system software and administrators can write or clear this log, and any authenticated user can read events from it.
If you do not configure this policy setting, the previous policy setting configuration remains in effect.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > System > Configure log access (legacy)
PowerShell equivalent (generated from the template)
# Log Access
New-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\EventLog\System' -Name 'CustomSD' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Startup, Run keys and servicesCrash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_FileLogAccess_8
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\System |
|---|
| Value name | Retention |
|---|
| Enabled writes | 1 (REG_SZ) |
|---|
| Disabled writes | 0 (REG_SZ) |
|---|
What it does (vendor explanation)
This policy setting controls Event Log behavior when the log file reaches its maximum size.
If you enable this policy setting and a log file reaches its maximum size, new events are not written to the log and are lost.
If you disable or do not configure this policy setting and a log file reaches its maximum size, new events overwrite old events.
Note: Old events may or may not be retained according to the "Backup log automatically when full" policy setting.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > System > Control Event Log behavior when the log file reaches its maximum size
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Name 'Retention' -Value '1' -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_Log_Retention_4
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\System |
|---|
| Option | Value | Type | Allowed values |
|---|
| Log File Path | File | REG_SZ | Text |
What it does (vendor explanation)
This policy setting controls the location of the log file. The location of the file must be writable by the Event Log service and should only be accessible to administrators.
If you enable this policy setting, the Event Log uses the path specified in this policy setting.
If you disable or do not configure this policy setting, the Event Log uses the folder %SYSTEMROOT%\System32\winevt\Logs.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > System > Control the location of the log file
PowerShell equivalent (generated from the template)
# Log File Path
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Name 'File' -Value <value> -PropertyType String -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_LogFilePath_4
Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\System |
|---|
| Option | Value | Type | Allowed values |
|---|
| Maximum Log Size (KB) | MaxSize | REG_DWORD | Number 1024 to 2147483647 |
What it does (vendor explanation)
This policy setting specifies the maximum size of the log file in kilobytes.
If you enable this policy setting, you can configure the maximum log file size to be between 1 megabyte (1024 kilobytes) and 2 terabytes (2147483647 kilobytes), in kilobyte increments.
If you disable or do not configure this policy setting, the maximum size of the log file will be set to the locally configured value. This value can be changed by the local administrator using the Log Properties dialog, and it defaults to 1 megabyte.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Log Service > System > Specify the maximum log file size (KB)
PowerShell equivalent (generated from the template)
# Maximum Log Size (KB)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Name 'MaxSize' -Value <value> -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
Crash dumps, error reporting and event logsADMX: EventLog.admx · policy name Channel_LogMaxSize_4