Add‐RepositoryFilter



Summary

Add a filter to the repository.

Syntax

Add-RepositoryFilter [-Platform] <String> [[-Os] <String[]>] [[-OsVer] <String>] [[-Category] <String[]>] [[-ReleaseType] <String[]>] [[-Characteristic] <String[]>] [<CommonParameters>]

Description

This function adds a filter to a repository, which was previously initialized by Initialize-Repository.

The repository can contain one or more filters, and the effective filtering will be the sum of all filters defined.

Parameters

Name Argument Description
Platform <String> Specifies the given platform as a platform to include in this repository. This is a platform ID, a 4-digit hexadecimal number, as obtained by Get?HPDeviceProductID.
Os <String[]> Specifies the operating system to be include in this repository. The field must be one of "win7", "win8", "win8.1", "win10". If this parameter is not specified, all operating system associated with the specified platform will be included.
OsVer <String> For windows 10 only, specify the target OS Version (e.g. 1709, 1803, 2009 etc). Starting from 21H1 release, "xxHx" format is expected. If the parameter is not specified, current operating system version
  will be assumed, which may not be what is intended.
  
  For windows versions other than windows 10, this switch is silently ignored.
Category <String[]> Specifies the softpaq category to be include in this repository. The category must be one (or more) of "Bios", "Firmware", "Driver", "Software", "OS", "Manageability", "Diagnostic", "Utility", "Driverpack", "Dock", "UWPPack".
  If this parameter is not specified, all categories are included.
ReleaseType <String[]> Specifies the softpaq release type to be include in this repository. The release type must be one (or more) of "critical", "recommended", "routine". If this parameter is not specified, all release types are included.
Characteristic <String[]> Specifies the softpaq characteristic to be include in this repository. The characteristic must be one of "ssm", "dpb", "uwp". If this parameter is not specified, all characteristics are included.

Examples


PS C:\> Add-RepositoryFilter -Platform 1234 -Os win10 -OsVer 2009

PS C:\> Add-RepositoryFilter -Platform 1234 -Os win10 -OsVer "21H1"

See also