# Author: Sean Christie
# v1.0
#=================================================================================
# Constants section
#=================================================================================
# Assign script name variable for use in event logging.
$ScriptName = "Security.Protocol.Hash.Monitor.DataSource.ps1"
$EventID = "1131"
#=================================================================================
# Starting Script section
#=================================================================================
# Gather the start time of the script
$StartTime = Get-Date
#Set variable to be used in logging events
$whoami = whoami
# Load MOMScript API
$momapi = New-Object -comObject MOM.ScriptAPI
# Load PropertyBag function
$bag = $momapi.CreatePropertyBag()
#Log script event that we are starting task
$momapi.LogScriptEvent($ScriptName,$EventID,0,"`n Script is starting. `n Running as ($whoami).")
#=================================================================================
# Begin MAIN script section
#=================================================================================
$strCondition = "Good"
#Evaluate Settings for less secure protocols
$Hashes = @("MD5","SHA","SHA384","SHA256","SHA512")