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
Get step-by-step solutions from verified subject matter experts
