Get-CMSoftwareInventory

Get-CMSoftwareInventory

Retrieves an object that collects software inventory data in Configuration Manager.

Syntax

Parameter Set: SearchByName
Get-CMSoftwareInventory [-Name <String[]> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMSoftwareInventory -Id <String[]> [ <CommonParameters>]

Detailed Description

The Get-CMSoftwareInventory cmdlet retrieves an object that collects information about files that client devices contain.

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?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

true

<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: Get a software inventory object

This command gets the software inventory object named MSXML 6.0 Parser.

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

Set-CMSoftwareInventory

Undo-CMSoftwareInventory