Question: Scenario: Occasionally we need to pull the latest information from a system event log. We want to view the most recent 15 entries from the
Scenario: Occasionally we need to pull the latest information from a system event log. We want to view the most recent 15 entries from the system log, view the time the event was generated, what type of entry it is, and what the event source was. To prioritize, we want to view the events sorted by entry type. Your job is to write a PowerShell command to capture the information we need so that we can review it.
Instructions: In PowerShell, write a command that will retrieve the 15 most current entries from the System event log, display the time generated, the entry type, and and source. Sort the entries by entry type and then save the output to a standard text file named log.txt. Take a screen shot of the command that you used to capture the file. Find and execute the PowerShell command to display the contents of a text file. Enter the command to view the contents of the log.txt file. Capture a screen shot of the command to view the file and the results of the command. Submit the required screen shots here.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
