Adding standardized header comments and example

This commit is contained in:
silversword411 2021-04-26 20:59:39 -04:00
parent f21465335a
commit b752329987
No known key found for this signature in database
GPG Key ID: 6F4BD176F56B50CA
1 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,12 @@
# This will check for Malware, Antispyware, that Windows Defender is Healthy, last scan etc within the last 24 hours
# If parameter is supplied, it will search the log for that many days
<#
.Synopsis
Defender - Status Report
.DESCRIPTION
This will check Event Log for Windows Defender Malware and Antispyware reports, otherwise will report as Healthy. By default if no command parameter is provided it will check the last 1 day (good for a scheduled daily task).
If a number is provided as a command parameter it will search back that number of days back provided (good for collecting all AV alerts on the computer).
.EXAMPLE
Win_Defender_Status_reports.ps1 365
#>
$param1 = $args[0]