Skip to content
Use SCCM CMPivot to Perform Security Audits Created New Local User Account | Tried to Reset Password

Use SCCM CMPivot to Perform Security Audits Created New Local User Account | Tried to Reset Password

Written By Anoop C Nair
Last Updated August 26, 2022
Posted In SCCM
SHARE

Learn how to use SCCM CMPivot to perform security audits. The CMPivot can help to perform a quick round of security audits on Windows devices. CMPivot can scan Security Audit events and produce some results.

SCCM is not a security audit tool! This is the first point that you must remember! So don’t expect everything that Azure Sentinel or any other SIEM Solution. However, if you are looking for a quick security audit on a particular Windows device, SCCM CMPivot would be helpful!

You can check security audit events from Windows devices to analyze the security risk of a device. The events include checking whether a new Local account has been created or someone tried to reset the password of a local account.

SCCM CMPivot helps you to use the existing investment to get the real data that you want from SCCM clients for a quick security audit. Modern cloud/hybrid SIEM solutions need event logs to be sent to log analytics or some other storage and analyzed from there. In this CMPivot scenario, we access the logs directly from Windows devices.

Patch My PC

SCCM CMPivot provides almost real-time data from all the SCCM Online clients. The query used in CMPivot is similar to KQL queries. CMPIvot query language is the subset of KQL query language used in Azure log analytics workspace.

Video Explanation of Windows 11 Security Audit Options using SCCM

Video Explanation of Windows 11 Security Audit Options using SCCM.

Video Explanation of Windows 11 Security Audit Options using SCCM

Event ID 4720 for New Local User Account

You can check the Event ID 4720 to check whether there is any New Local User Account has been created or not. The source of the event log is Microsoft Windows security.

The task category of the Event ID 4720 is User Account Management. You can catch all this information from SCCM CMPivot using either the admin console or MEM Admin portal.

Log NameEvent IDTask CategoryDescription
Security4720User Account ManagementA user account was created.
Use SCCM CMPivot to Perform Security Audits – Table 1 Event ID 4720
Use SCCM CMPivot to Perform Security Audits Created New Local User Account 1
Use SCCM CMPivot to Perform Security Audits Created New Local User Account 1

Created New Local User Account – Use SCCM CMPivot to Perform Security Audits

Let’s see who created the new Local User Account using SCCM CMPivot to Perform Security Audits. You can run a CMPivot query against a device collection using the Event ID 4720.

You can launch the CMPivot using any of the following options. For this post, I’m using the MEM Admin center portal, which can be used only when you have enabled the SCCM Cloud Attach feature. Otherwise, use the SCCM Admin console to run the following CMPivot query.

Follow the steps to run the CMPivot query from the MEM Admin center portal:

  • Login to the MEM Admin Center Portal – endpoint.microsoft.com
  • Navigate to Devices – Select a Device managed by SCCM or Co-managed.
  • Click on the CMPivot page on the left-side navigation menu.
Use SCCM CMPivot to Perform Security Audits Created New Local User Account 2
Use SCCM CMPivot to Perform Security Audits Created New Local User Account 2

Once the CMPivot query page is launched from the MEM admin (Intune) portal, you copy the following query to check the event ID 4720 details on that particular Windows device. The second query is scoped for the last 2 hours.

WinEvent('Security') | where ID == 4720
WinEvent('Security', 2h) | where ID == 4720
DEVICELEVELDISPLAYNAMEDATETIMEMESSAGEPROVIDERNAMEEvent ID
WIN11DJInformation22-08-2022 18:29A user account was created.Subject: Security ID:  S-1-5-21-500 Account Name:  anoop Account Domain:  MEMCM Logon ID:  0x10280AC New Account: Security ID:  S-1-5-21-1001 Account Name:  HTMDLU Account Domain:  Win11DJ Attributes: SAM Account Name: HTMDLU Display Name: Microsoft-Windows-Security-Auditing4720
Use SCCM CMPivot to Perform Security Audits Created New Local User Account 2 – Table 2

You have an option to export the results of the CMPivot query from the MEM admin center portal, as you can see in the screenshot below.

Use SCCM CMPivot to Perform Security Audits Created New Local User Account 3
Use SCCM CMPivot to Perform Security Audits Created New Local User Account 3

Event ID 4724 – An attempt was made to reset Password

You can use the event ID 4724 to check whether there was an attempt was made to reset an account’s password. You can use the CMPivot query to perform a quick security audit on Windows devices.

The source of this event ID on Windows 11 devices is Microsoft Windows Security. The Task category is User Account Management. You can get all this security audit related information using CMPivot.

Log NameEvent IDTask CategoryDescription
Security4724User Account ManagementAn attempt was made to reset an account’s password
Security4738User Account ManagementA user account was changed
Security4798User Account ManagementA user’s local group membership was enumerated
Security4722User Account ManagementA user account was enabled
Use SCCM CMPivot to Perform Security Audits – An attempt was made to reset Password – Table 3
Use SCCM CMPivot to Perform Security Audits - An attempt was made to reset Password - 4
Use SCCM CMPivot to Perform Security Audits – An attempt was made to reset Password – 4

Use SCCM CMPivot to Perform Security Audits

Let’s see how to check the security audit logs using SCCM CMPivot quickly. There are different methods to run the CMPivot query, as explained in the above section.

You can get the details of events similar to “An attempt was made to reset an account’s password” or “A user account was changed.” Use the following CMPivot query to fetch the details of Security Audit logs from Windows devices.

WinEvent('Security') | 
where ID == 4724 
or ID == 4738 
or ID == 4798
or ID == 4722
Use SCCM CMPivot to Perform Security Audits - An attempt was made to reset Password - 5
Use SCCM CMPivot to Perform Security Audits – An attempt was made to reset Password – 5

Find Details of Devices with an attempt was made to reset an account’s password Events

Let’s find out the count of devices with “an attempt was made to reset an account’s password” events. The count of devices can help you to understand the impact of the situation if you have any security breach.

Once you have the count, you can make a decision to dive deep into some of the Windows devices. You can use any of the CMPivot queries mentioned below to start working on more forensic analysis.

WinEvent('Security') | 
summarize countif( (Message contains 'An attempt was made to reset an account's password') ) by Device | 
where (countif_ > 0)

Resource -> CMPivot for real-time data – Configuration Manager | Microsoft Docs

Author

Anoop C Nair is Microsoft MVP! He is a Device Management Admin with more than 20 years of experience (calculation done in 2021) in IT. He is Blogger, Speaker, and Local User Group HTMD Community leader. His main focus is on Device Management technologies like SCCM 2012, Current Branch, and Intune. He writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion

Join the discussion

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

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read