Set-CMSoftwareInventory

Modifies an object that collects software inventory data on files.

Syntax

Set-CMSoftwareInventory
   [-Confirm]
   [-DisableWildcardHandling]
   [-FamilyId <Int32>]
   [-ForceWildcardHandling]
   -Id <String>
   [-NewName <String>]
   [-Publisher <String>]
   [-Tag1Id <Int32>]
   [-Tag2Id <Int32>]
   [-Tag3Id <Int32>]
   [-WhatIf]
   [<CommonParameters>]
Set-CMSoftwareInventory [-Confirm] [-DisableWildcardHandling] [-FamilyId ] [-ForceWildcardHandling]
 -InputObject  [-NewName ] [-Publisher ] [-Tag1Id ] [-Tag2Id ]
 [-Tag3Id ] [-WhatIf] []
Set-CMSoftwareInventory [-Confirm] [-DisableWildcardHandling] [-FamilyId ] [-ForceWildcardHandling]
 -Name  [-NewName ] [-Publisher ] [-Tag1Id ] [-Tag2Id ]
 [-Tag3Id ] [-WhatIf] []

Description

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

Examples

Example 1: Set a software inventory object

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

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

Required Parameters

-Id

Specifies an array of IDs of software files.

Type:String
Aliases:SoftwareKey
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

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

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies an array of names of software files.

Type:String[]
Aliases:CommonName
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FamilyId

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

Type:Int32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NewName

Specifies a new name for inventoried software in Configuration Manager.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Publisher

Specifies the name of a software publisher in Configuration Manager.

Type:String
Aliases:CommonPublisher
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tag1Id

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

Type:Int32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tag2Id

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

Type:Int32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tag3Id

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

Type:Int32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False