# PS Security Event Log 4720

**URL:** <https://forums.powershell.org/t/ps-security-event-log-4720/17843>\
**Category:** PowerShell Help\
**Created:** [October 29, 2021, 3:42pm UTC](https://forums.powershell.org/t/ps-security-event-log-4720/17843 "2021-10-29T15:42:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimD](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@TimD](https://forums.powershell.org/u/TimD)\
**Post date:** [October 29, 2021, 3:42pm UTC](https://forums.powershell.org/t/ps-security-event-log-4720/17843/1 "2021-10-29T15:42:16Z")

</div>

I am looking for some help, I am relatively new to powershell scripting and I am looking to query a 4720 event which is a new user create on a Windows computer to get the value of the “New Account” area inside the event log details…

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [October 29, 2021, 4:28pm UTC](https://forums.powershell.org/t/ps-security-event-log-4720/17843/2 "2021-10-29T16:28:16Z")

</div>

Tim,  
Welcome to the forum. 👋🏽

What kind of help do you expect? We actually expect you to do your own research to accomplish a given task before you come here to ask for help.

The PowerShell cmdlet to query the event log is

> **[Get-WinEvent (Microsoft.PowerShell.Diagnostics) - PowerShell](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-winevent?view=powershell-7.2&viewFallbackFrom=powershell-7.1)**
>
> This cmdlet is only available on the Windows platform. The Get-WinEvent cmdlet gets events from event logs, including classic logs, such as the System and Application logs. The cmdlet gets data from event logs that are generated by the Windows Event...

You may read the help including the examples to learn how to use it.

I’d urgently recommend to take your time to learn at least the very basics of PowerShell first. It will save you from a lot of wasted time and frustration.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:20pm UTC](https://forums.powershell.org/t/ps-security-event-log-4720/17843/3 "2024-05-16T20:20:38Z")

</div>

Closed on May 16, 2024, 8:20pm UTC


