diff --git a/Scripts/Get-PSWSUSClient.ps1 b/Scripts/Get-PSWSUSClient.ps1 index 67791dc..8c654b6 100644 --- a/Scripts/Get-PSWSUSClient.ps1 +++ b/Scripts/Get-PSWSUSClient.ps1 @@ -100,7 +100,9 @@ function Get-PSWSUSClient { [Parameter(ParameterSetName='ComputerScope')] [switch]$IncludeSubGroups, [Parameter(ParameterSetName='ComputerScope')] - [switch]$IncludeDownstreamComputerTargets + [switch]$IncludeDownstreamComputerTargets, + [Parameter(ParameterSetName='ComputerScope')] + [string]$NameIncludes ) Begin { if($wsus) @@ -138,6 +140,9 @@ function Get-PSWSUSClient { If ($PSBoundParameters['ComputerTargetGroups']) { [void]$ComputerScope.ComputerTargetGroups.AddRange($ComputerTargetGroups) } + If ($PSBoundParameters['NameIncludes']) { + $ComputerScope.NameIncludes = $NameIncludes + } } }#endif else