Set-CMSoftwareInventory
Modifies an object that collects software inventory data on files.
Syntax
Set-CMSoftwareInventory
[-CategoryId <Int32>]
[-CleanTag1]
[-CleanTag2]
[-CleanTag3]
[-FamilyId <Int32>]
-Id <String>
[-NewName <String>]
[-ParentSoftwareId <String>]
[-PassThru]
[-Publisher <String>]
[-Tag1Id <Int32>]
[-Tag2Id <Int32>]
[-Tag3Id <Int32>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMSoftwareInventory
[-CategoryId <Int32>]
[-CleanTag1]
[-CleanTag2]
[-CleanTag3]
[-FamilyId <Int32>]
-Name <String[]>
[-NewName <String>]
[-ParentSoftwareId <String>]
[-PassThru]
[-Publisher <String>]
[-Tag1Id <Int32>]
[-Tag2Id <Int32>]
[-Tag3Id <Int32>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-CMSoftwareInventory
[-CategoryId <Int32>]
[-CleanTag1]
[-CleanTag2]
[-CleanTag3]
[-FamilyId <Int32>]
-InputObject <IResultObject>
[-NewName <String>]
[-ParentSoftwareId <String>]
[-PassThru]
[-Publisher <String>]
[-Tag1Id <Int32>]
[-Tag2Id <Int32>]
[-Tag3Id <Int32>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Set-CMSoftwareInventory cmdlet modifies an object that collects information about files on client devices in Configuration Manager.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Examples
Example 1: Set a software inventory object
PS XYZ:\> Set-CMSoftwareInventory -Name "MSXML 6.0 Parser"
This command starts collecting software inventory data on the file named MSXML 6.0 Parser.
Parameters
-CategoryId
{{ Fill CategoryId Description }}
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CleanTag1
{{ Fill CleanTag1 Description }}
Type: | SwitchParameter |
Aliases: | CleanLabel1 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CleanTag2
{{ Fill CleanTag2 Description }}
Type: | SwitchParameter |
Aliases: | CleanLabel2 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CleanTag3
{{ Fill CleanTag3 Description }}
Type: | SwitchParameter |
Aliases: | CleanLabel3 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ForceWildcardHandling
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
Specifies an array of IDs of software files.
Type: | String |
Aliases: | SoftwareKey |
Position: | Named |
Default value: | None |
Required: | True |
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 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Specifies an array of names of software files.
Type: | String[] |
Aliases: | CommonName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NewName
Specifies a new name for inventoried software in Configuration Manager.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParentSoftwareId
{{ Fill ParentSoftwareId Description }}
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
Add this parameter to return an object that represents the item with which you're working. By default, this cmdlet may not generate any output.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Publisher
Specifies the name of a software publisher in Configuration Manager.
Type: | String |
Aliases: | CommonPublisher |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Tag1Id
Specifies the ID of a tag to classify inventoried software in Configuration Manager.
Type: | Int32 |
Aliases: | Label1Id |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Tag2Id
Specifies the ID of a tag to classify inventoried software in Configuration Manager.
Type: | Int32 |
Aliases: | Label2Id |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Tag3Id
Specifies the ID of a tag to classify inventoried software in Configuration Manager.
Type: | Int32 |
Aliases: | Label3Id |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet doesn't run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
Outputs
System.Object