Add a switch parameter to avoid displaying a progress bar
This commit is contained in:
Родитель
eb2a62dd81
Коммит
34b528dd95
|
@ -49,7 +49,9 @@ Param(
|
|||
$Vulnerability,
|
||||
|
||||
[Parameter(Mandatory,ValueFromPipelineByPropertyName)]
|
||||
$ProductTree
|
||||
$ProductTree,
|
||||
|
||||
[Switch]$ShowNoProgress
|
||||
)
|
||||
Begin{
|
||||
|
||||
|
@ -136,7 +138,7 @@ Process {
|
|||
PercentComplete = ($count/$TotalCVE*100)
|
||||
ErrorAction = 'SilentlyContinue'
|
||||
}
|
||||
Write-Progress @Progress
|
||||
if (-not($ShowNoProgress)) { Write-Progress @Progress }
|
||||
Write-Verbose -Message "Dealing with $($_.CVE)"
|
||||
|
||||
#region CVE Summary Table
|
||||
|
|
Загрузка…
Ссылка в новой задаче