SystemPackage#

Removes a specified Windows component based off the provided manifest, along with any dependent components.

Windows components are sets of files, services, and/or registry entries relating to a specific part of the operating system.

Required Parameters#


Paramater

Description

Type

name

Specifies the name of the component.

string

Optional Parameters#


Paramater

Description

Type

Default

arch

Specifies the processor architecture of the component to be removed.

Enum:
amd64
wow64
x86
msil
all

all

language

Specifies the language of the component to be removed.

string

* - any language

regexExcludeFiles

Specifies an array of regex strings to filter files from being deleted.

string array

None

excludeDependents

Specifies an array of dependent components to exclude from removal.

string array

None

Examples#


Removes the Bluetooth Telemetry component excluding BthTelemetry.dll with any parent path:

- !systemPackage: {name: 'Microsoft-Windows-CoreSystem-Bluetooth-Telemetry', arch: amd64, language: 'neutral', regexExcludeFiles: ['.*\\BthTelemetry.dll']}

Removes the SenseClient component excluding its dependent component Windows-SECDriver:

- !systemPackage: {name: 'Microsoft-Windows-SenseClient-Deployment', arch: amd64, language: 'neutral', excludeDependents: ['Windows-SECDriver']}