Undo-CMSoftwareInventory

Undo-CMSoftwareInventory

Stops collecting software inventory data on files.

Syntax

Parameter Set: SearchByNameMandatory
Undo-CMSoftwareInventory -Name <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Undo-CMSoftwareInventory -Id <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Undo-CMSoftwareInventory -SoftwareInventory <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Undo-CMSoftwareInventory cmdlet stops collecting information about files that are contained on client devices.

Parameters

-Id<String[]>

Specifies an array of IDs of software files.

Aliases

SoftwareKey

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String[]>

Specifies an array of names of software files.

Aliases

CommonName

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

true

-SoftwareInventory<IResultObject>

Specifies a CMSoftwareInventory object. To obtain a CMSoftwareInventory object, use the Get-CMSoftwareInventory cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Stop collecting software inventory data on a file

This command stops collecting software inventory data on the file named MSXML 6.0 Parser.

PS C:\> Undo-CMSoftwareInventory -Name "MSXML 6.0 Parser"

Get-CMSoftwareInventory

Set-CMSoftwareInventory