Remove-RepositoryFilter



Summary

Remove one or more filters from the repository.

Syntax

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

Description

This function modifies the repository to remove filters from the repository definition.

If an optional parameter is not specified, it will be considered a wildcard and match any value. Therefore this command may result in multiple filters being deleted.

Parameters

Name Argument Description
Platform <String> The platform to remove. This is a 4-digit hex number, and can be obtained via Get-HPDeviceProductID
Os <String[]> An optional parameter to narrow down the filter to a specific OS for the specified platform. If not specified, all OS will be matched.
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[]> An optional parameter to narrow down the filter to a specific category for the specified platform. If not specified, all categories will be matched.
ReleaseType <String[]> An optional parameter to narrow down the filter to a specific release type for the specified platform. If not specified, all release types will be matched.
Yes An optional parameter to provide. If not specified, script will ask for confirmation before deleting a filter. If specified, script will go ahead and delete the filter without confirming.
Characteristic <String[]> An optional parameter to narrow down the filter to a specific characteristic for the specified platform. If not specified, all characteristics will be matched.
PreferLTSC <Nullable`1> An optional boolean parameter to narrow down the filter to a specific LTSB/LTSC reference file preference 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