Question: It is important for a system administrator / security analyst to collect system information on a regular basis to monitor host activities. Write a PowerShell

It is important for a system administrator/security analyst to collect system information on a regular basis to monitor host activities. Write a PowerShell script, sys_admin.ps1, for system administrators. When used, the script should print out a report (an output file) that contains the following information.
a. The date and time of running the report.
b. Use an input parameter, like what we did in Get-DiskUsage.ps1. If ShowService parameter is included, list services running on the system sorted by the number of services depending on them (only the first 5 entries).
c. If ShowService parameter is not included, do not list services running.
d. In both cases (either b or c), list names and count of entries from the security event log, grouped and sorted by name (only the first 5 entries)

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 Programming Questions!