October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk4 min

How to Turn On Windows Process Command-Line Auditing with Intune

Configure both Intune device policies required for Windows to log process command lines in Security event 4688, then test the result and manage access to the sensitive data.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To capture process command lines in Windows, enable two device policies: Audit Process Creation with Success auditing, and Include command line in process creation events. The first generates Security event 4688 when a process starts; the second adds its command-line details. Deploy both through an Intune device configuration profile, then verify the resulting events on a test device. Command lines are stored in plain text, so assess the privacy and access implications before broad deployment.

Why two policies are required

The settings perform different jobs and are complementary, not alternatives:

As an Amazon Associate I earn from qualifying purchases.

  • Audit Process Creation enables Windows to record a process-start audit event. Its Audit Policy CSP identifier is ./Device/Vendor/MSFT/Policy/Config/Audit/DetailedTracking_AuditProcessCreation. Set it to 1 for Success auditing. The CSP also defines 0 as Off/None, 2 as Failure, and 3 as Success and Failure. Microsoft recommends Success auditing for process-start monitoring; its guidance notes that this subcategory has no Failure events. Microsoft’s Audit Policy CSP documentation and process-creation audit guidance describe the setting and its behavior.
  • Include command line in process creation events adds command-line data to the event. Its ADMX-backed CSP identifier is ./Device/Vendor/MSFT/Policy/Config/ADMX_AuditSettings/IncludeCmdLine. It only applies when Audit Process Creation is enabled and requires a string/character SyncML format when configured through the CSP. See Microsoft’s ADMX_AuditSettings CSP documentation.

Windows records process creation as Security event ID 4688, “A new process has been created.” The Process Command Line field is empty by default; enabling the second policy alongside process-creation auditing makes that field available. Microsoft’s event 4688 reference explains the event fields.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check Windows edition and build support

Confirm that the target devices meet the applicability requirements for both CSP settings before assigning a profile. Microsoft lists Pro, Enterprise, Education, and IoT Enterprise editions for these policies, but the minimum supported versions differ:

  • The Audit Policy CSP lists Windows 10 Pro, Enterprise, Education, and IoT Enterprise, with support beginning at Windows 10 version 1803 plus specified servicing updates; it also lists Windows 10 version 2004 and later.
  • The IncludeCmdLine CSP lists Windows 10 version 2004, 20H2, and 21H1 with KB5005101 and later, and Windows 11 version 21H2 and later.

Use the live Audit CSP and ADMX_AuditSettings CSP pages to check current applicability for the precise builds in your fleet. The IncludeCmdLine policy is device-scoped.

Configure both policies in Intune

Intune’s Settings Catalog provides a way to configure settings exposed through Windows CSPs and create assignable device configuration profiles. Microsoft’s documentation establishes that general mechanism, but it does not confirm that both settings appear in every tenant’s current catalog or establish a universal click path for them. Check the current tenant for the named settings before relying on catalog configuration. If using a custom CSP profile, use the verified CSP identifiers above and confirm the required SyncML string serialization for IncludeCmdLine; do not assume an unverified XML payload.

  1. Confirm applicability. Check that the test devices’ Windows editions and builds are covered by both CSP entries.
  2. Create a device configuration profile. In Intune, use a supported profile mechanism for the device-scoped settings. Microsoft documents Settings Catalog profiles and assignment generally in its Settings Catalog documentation; availability of these particular controls can vary by tenant.
  3. Set process auditing to Success. Configure ./Device/Vendor/MSFT/Policy/Config/Audit/DetailedTracking_AuditProcessCreation with value 1.
  4. Enable command-line inclusion. Configure ./Device/Vendor/MSFT/Policy/Config/ADMX_AuditSettings/IncludeCmdLine. For a custom CSP payload, use the string/character SyncML format required by the policy and validate the serialization in your environment before deployment.
  5. Assign to a test group. Start with a limited set of devices rather than the full fleet.
  6. Verify on a test device. After policy application, inspect newly generated Security event 4688 records and check whether the Process Command Line field is populated. Also confirm the effective audit policy and whether another management source is overriding it.
  7. Expand only after operational checks. Validate event generation, command-line visibility, log access, collection, and retention needs before broadening assignment.

Protect the command-line data

Command lines are written in plain text to the Security event log. Microsoft warns that anyone permitted to read those events can also read the command-line arguments for successfully created processes; applications may put passwords or user data in those arguments. Treat the events and any forwarded or exported copies as sensitive. Review which applications pass sensitive values on command lines, restrict access to the Security log and downstream collections, and align retention with your organization’s security and privacy requirements. Microsoft states that anyone with access to read the security events can read the arguments in its ADMX_AuditSettings CSP documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Plan for event volume and policy conflicts

Process-creation event volume depends on how a device is used. Microsoft characterizes it as medium to high depending on process activity, rather than giving a universal event count. Measure activity and collection volume on representative devices, then size log capacity and retention for your own workload. Audit Policy CSP guidance and Microsoft’s process-creation audit guidance discuss this volume consideration.

Also check for other policy sources that configure auditing. Microsoft cautions that Advanced Audit Policy Configuration can be overridden by basic audit policy settings and describes the force-subcategory setting as a way to prevent such conflicts in Group Policy. In an Intune-managed fleet, verify the effective policy and resolve competing management settings through the appropriate management source; a Group Policy-only remedy is not automatically the right deployment path.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.