Question: Create a Windows PowerShell script that will provide a summary of events in the Security log as well as details on the 50 most recent

Create a Windows PowerShell script that will provide a summary of events in the Security log as well as details on the 50 most recent Failure Audit events.

Your script must:

Display a count of all events in the Security log grouped by the UserName property. Example:

Count Name

----- ----

1138 NT AUTHORITY\SYSTEM

94 NT AUTHORITY\LOCAL SERVICE

5 NT AUTHORITY\NETWORK SERVICE

Display the last 7 days Failure Audit events from the Security log. The script should get the current date from the system and use it to calculate the date range.

Hint: the get-eventlog

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!