Set-CMSoftwareInventory

Set-CMSoftwareInventory

Modifies an object that collects software inventory data on files.

Syntax

Parameter Set: SetById
Set-CMSoftwareInventory -Id <String[]> [-FamilyId <Int32> ] [-NewName <String> ] [-Publisher <String> ] [-Tag1Id <Int32> ] [-Tag2Id <Int32> ] [-Tag3Id <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetByName
Set-CMSoftwareInventory -Name <String[]> [-FamilyId <Int32> ] [-NewName <String> ] [-Publisher <String> ] [-Tag1Id <Int32> ] [-Tag2Id <Int32> ] [-Tag3Id <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetByValueMandatory
Set-CMSoftwareInventory -InputObject <IResultObject> [-FamilyId <Int32> ] [-NewName <String> ] [-Publisher <String> ] [-Tag1Id <Int32> ] [-Tag2Id <Int32> ] [-Tag3Id <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Set-CMSoftwareInventory cmdlet modifies an object that collects information about files on client devices in Microsoft System Center 2012 SP1 Configuration Manager.

Parameters

-FamilyId<Int32>

Specifies the ID of the family used to classify inventoried software in Configuration Manager.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-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

-InputObject<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

-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

-NewName<String>

Specifies a new name for inventoried software in Configuration Manager.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Publisher<String>

Specifies the name of a software publisher in Configuration Manager.

Aliases

CommonPublisher

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Tag1Id<Int32>

Specifies the ID of a tag to classify inventoried software in Configuration Manager.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Tag2Id<Int32>

Specifies the ID of a tag to classify inventoried software in Configuration Manager.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Tag3Id<Int32>

Specifies the ID of a tag to classify inventoried software in Configuration Manager.

Aliases

none

Required?

false

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

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

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

Get-CMSoftwareInventory

Undo-CMSoftwareInventory