Remove-RepositoryFilter



Summary

Removes one or more previously added filters per specified platform from the current repository

Syntax

Remove-RepositoryFilter [-Platform] <String> [[-Os] <String[]>] [[-OsVer] <String>] [[-Category] <String[]>] [[-ReleaseType] <String[]>] [[-Yes]] [[-Characteristic] <String[]>] [[-PreferLTSC] <Nullable`1>] [<CommonParameters>]

Description

This command removes one or more previously added filters per specified platform from the current repository. Please note that "*" means "current" for the -Os parameter but means "all" for the -Category, -ReleaseType, -Characteristic parameters.

Parameters

Name Argument Description
Platform <String> Specifies the platform to be removed from this repository. This is a 4-digit hex number that can be obtained via the Get-HPDeviceProductID command. This parameter is mandatory.
Os <String[]> Specifies an OS for this command to be removed from this repository. The value must be 'win10' or 'win11'. If not specified, the current operating system will be assumed, which may not be what is intended.
OsVer <String> Specifies the target OS Version (e.g. '1809', '1903', '1909', '2004', '2009', '21H1', '21H2', '22H2', '23H2', '24H2', etc). Starting from the '21H1' release, 'xxHx' format is expected. If the parameter is not specified, the current operating system version will be assumed, which may not be what is intended.
Category <String[]> Specifies the SoftPaq category to be removed from this repository. The value must be one (or more) of the following values:
- Bios
- Firmware
- Driver
- Software
- OS
- Manageability
- Diagnostic
- Utility
- Driverpack
- Dock
- UWPPack

If not specified, all categories will be removed.
ReleaseType <String[]> Specifies the release type for this command to remove from this repository. If not specified, all release types will be removed. The value must be one (or more) of the following values:
- Critical
- Recommended
- Routine

If this parameter is not specified, all release types will be removed.
Yes If specified, this command will delete the filter without asking for confirmation. If not specified, this command will ask for confirmation before deleting a filter.
Characteristic <String[]> Specifies the characteristic to be removed from this repository. The value must be one of the following values:
- SSM
- DPB
- UWP

If this parameter is not specified, all characteristics are included. If not specified, all characteristics will be removed.
PreferLTSC <Nullable`1> If specified, this command uses the Long-Term Servicing Branch/Long-Term Servicing Channel (LTSB/LTSC) Reference file for the specified platform. If not specified, all preferences will be matched.

Examples


PS C:\> Remove-RepositoryFilter -Platform 1234

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

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

See also