Add-RepositoryFilter



Summary

Add a filter to the repository.

Syntax

Add-RepositoryFilter [-Platform] <String> [[-Os] <Object>] [[-OsVer] <String[]>] [[-Category] <String[]>] [[-ReleaseType] <String[]>] [[-Characteristic] <String[]>] [[-PreferLTSC]] [<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 <Object> Specifies the operating system to be include in this repository. The field must be one of "win10" or "win11". If this parameter is not specified, all operating systems associated with the specified platform will be included.
OsVer <String[]> Specify the target OS Version (e.g. "1809", "1903", "1909", "2004", "2009", "21H1", "21H2", "22H2" 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.
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.
PreferLTSC If specified, LTSB/LTSC reference file is preferred for the entered Platform. If the LTSB/LTSC reference file doesn't exist, falls back to regular reference file for that platform.

Examples


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

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

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

See also