Registry data refreshed from vendors: Last vendor change detected: 5 Dec 2026Next refresh: 1st of the monthApp v1.4.0 (5 Dec 2026): Cleanup or tattoo: see what stays behind after a GPO is removed. Release notes
Windows (ADMX) · AuditSettings.admx

AuditSettings.admx: 1 policies

Generated from Microsoft Windows Server 2025 Datacenter build 26100 in-box templates + Windows 11 ADMX package (download id 108394) on 2026-12-05. Titles, explanations and "Supported on" text are Microsoft's own, from the en-US ADML file.

Include command line in process creation events

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\Audit
Value nameProcessCreationIncludeCmdLine_Enabled
Enabled writes1 (REG_DWORD)
Disabled writes0 (REG_DWORD)
What it does (vendor explanation)

This policy setting determines what information is logged in security audit events when a new process has been created.

This setting only applies when the Audit Process Creation policy is enabled. If you enable this policy setting the command line information for every process will be logged in plain text in the security event log as part of the Audit Process Creation event 4688, "a new process has been created," on the workstations and servers on which this policy setting is applied.

If you disable or do not configure this policy setting, the process's command line information will not be included in Audit Process Creation events.

Default: Not configured

Note: When this policy setting is enabled, any user with access to read the security events will be able to read the command line arguments for any successfully created process. Command line arguments can contain sensitive or private information such as passwords or user data.

Group Policy path: Computer Configuration > Administrative Templates > System > Audit Process Creation > Include command line in process creation events

PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Audit' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Audit' -Name 'ProcessCreationIncludeCmdLine_Enabled' -Value 1 -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".

ADMX: AuditSettings.admx · policy name IncludeCmdLine