File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,12 @@ param(
123
123
[string ]
124
124
$ReportDir = (Get-Location ),
125
125
126
+ # Skip summary report -- used for Linux hosts that don't support
127
+ # the OLE database stuff.
128
+ [Parameter (Mandatory = $false )]
129
+ [switch ]
130
+ $SkipSummaryReport ,
131
+
126
132
# Tells the script to use the sytem tmp directory instead of the rule
127
133
# directory.
128
134
[Parameter (Mandatory = $false )]
@@ -245,6 +251,7 @@ else {
245
251
Write-Host " Loaded $ ( $queriesToCheck.Count ) Queries."
246
252
}
247
253
254
+
248
255
#
249
256
# Step 2: Verify All the Required CLI Tools are Installed
250
257
#
@@ -420,6 +427,8 @@ foreach ($r in $REPORT) {
420
427
[PSCustomObject ]$r | Export-CSV - Path $reportOutputFile - Append - NoTypeInformation
421
428
}
422
429
423
- # write out a summary
424
- Write-Host " Writing summary report to $summaryReportOutputFile "
425
- Create- Summary- Report - DataFile $reportOutputFile - OutputFile $summaryReportOutputFile
430
+ if (-not $SkipSummaryReport ){
431
+ # write out a summary
432
+ Write-Host " Writing summary report to $summaryReportOutputFile "
433
+ Create- Summary- Report - DataFile $reportOutputFile - OutputFile $summaryReportOutputFile
434
+ }
You can’t perform that action at this time.
0 commit comments