format: update recnum to RecNum
This commit is contained in:
@@ -24,8 +24,8 @@ function Test-NotifyMalwareInternal {
|
||||
# Dot source the class script if necessary
|
||||
#. .\source\Classes\CISAuditResult.ps1
|
||||
# Initialization code, if needed
|
||||
$recnum = "2.1.3"
|
||||
Write-Verbose "Running Test-NotifyMalwareInternal for $recnum..."
|
||||
$RecNum = "2.1.3"
|
||||
Write-Verbose "Running Test-NotifyMalwareInternal for $RecNum..."
|
||||
}
|
||||
process {
|
||||
try {
|
||||
@@ -47,7 +47,7 @@ function Test-NotifyMalwareInternal {
|
||||
}
|
||||
)
|
||||
#>
|
||||
$malwareNotifications = Get-CISExoOutput -Rec $recnum
|
||||
$malwareNotifications = Get-CISExoOutput -Rec $RecNum
|
||||
# Condition B: Using PowerShell, the `NotifyInternal` property in the anti-malware policy is set to `True` and includes at least one valid email address for notifications.
|
||||
$policiesToReport = @()
|
||||
foreach ($policy in $malwareNotifications) {
|
||||
@@ -73,7 +73,7 @@ function Test-NotifyMalwareInternal {
|
||||
}
|
||||
# Create and populate the CISAuditResult object
|
||||
$params = @{
|
||||
Rec = $recnum
|
||||
Rec = $RecNum
|
||||
Result = $result
|
||||
Status = if ($result) { "Pass" } else { "Fail" }
|
||||
Details = $details
|
||||
@@ -83,7 +83,7 @@ function Test-NotifyMalwareInternal {
|
||||
}
|
||||
catch {
|
||||
$LastError = $_
|
||||
$auditResult = Get-TestError -LastError $LastError -recnum $recnum
|
||||
$auditResult = Get-TestError -LastError $LastError -RecNum $RecNum
|
||||
}
|
||||
}
|
||||
end {
|
||||
|
Reference in New Issue
Block a user