diff --git a/Test-IntuneFirewallRules.ps1 b/Test-IntuneFirewallRules.ps1 index 25c9f8e..8942cc6 100644 --- a/Test-IntuneFirewallRules.ps1 +++ b/Test-IntuneFirewallRules.ps1 @@ -958,7 +958,7 @@ NAME: Test-FirewallRuleCreatesSuccessfully } catch { [string]$Remediation = "" $errMsg = $error[0] - "`r`n$tabs$stars`r`n`r`n$tabs Exception creating rule. Name: $dispName`: $errMsg`r`n`r`n$tabs$stars`r`n" | Write-Log -WriteStdOut + "`r`n$tabs$stars`r`n`r`n$tabs Error: Exception creating rule. Name: $dispName`: $errMsg`r`n`r`n$tabs$stars`r`n" | Write-Log -WriteStdOut $Remediation = Get-SuggestedAction -ExceptionInfo $errMsg -DetectedPathIssues $DetectedPathIssues -FilePath $ConstructedCommandLineArgs.program ` -Port ( ($ConstructedCommandLineArgs.localPort) + ($ConstructedCommandLineArgs.RemotePort)) -Protocol $ConstructedCommandLineArgs.protocol Write-BadRule -FWRule $FWRuleToCreate -ExceptionInfo $errMsg -DetectedPathIssues $DetectedPathIssues -PolicyName $PolicyName -SuggestedFix $Remediation