Skip to content

Commit

Permalink
Update Win_Antivirus_Verify.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
dinger1986 authored Oct 15, 2023
1 parent a16a959 commit 7e3956c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/Win_Antivirus_Verify.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ param($antivirusName = "*", [switch]$customField)
function Add-ProductStates {
[CmdletBinding()]
param (
# This parameter can be passed from pipeline and can contain and array of collections that contain State or productstate members
[Parameter(ValueFromPipeline)]
[Microsoft.Management.Infrastructure.CimInstance[]]
$Products,

# Product State contains a value (DWORD) that contains multiple bitflags and we use the productState flag (0000F000)
[Parameter(Position = 0, ValueFromPipelineByPropertyName, ValueFromPipeline, HelpMessage = "The value (DWORD) containing the bitflags.")]
[Alias("STATE")]
[UInt32]$ProductState
Expand Down

0 comments on commit 7e3956c

Please sign in to comment.