Disable-CMSoftwareMeteringRule

Disables Configuration Manager software metering rules.

Syntax

Disable-CMSoftwareMeteringRule
       -Id <String>
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Disable-CMSoftwareMeteringRule
       -InputObject <IResultObject>
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Disable-CMSoftwareMeteringRule
       -ProductName <String>
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

The Disable-CMSoftwareMeteringRule cmdlet disables one or more software metering rules in Microsoft System Center Configuration Manager. If you disable a rule, it does not collect information from clients. You can use the Enable-CMSoftwareMeteringRule cmdlet to enable a rule that you previously disabled.

Software metering monitors and collects software usage data from System Center Configuration Manager clients, such as when clients began using a particular software program and how long users have worked with that software. You can create software metering rules that specify which software to monitor.

You can specify rules that disable software metering rules by ID or by product name, or use the Get-CMSoftwareMeteringRule cmdlet. You can use the Remove-CMSoftwareMeteringRule to permanently delete a rule.

For more information about software metering in System Center Configuration Manager, see Introduction to Software Metering in Configuration Manager on TechNet.

Examples

Example 1: Disable rules for a specific product

PS C:\>Disable-CMSoftwareMeteringRule -ProductName "Accounting Package"

This command disables software metering rules for the product named Accounting Package. There may be more than one rule.

Example 2: Disable a specific rule

PS C:\>Disable-CMSoftwareMeteringRule -Id "16777229"

This command disables a software metering rule that has the specified ID.

Required Parameters

-Id

Specifies an array of IDs for software metering rules.

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

Specifies a software metering rule object. To obtain a software metering rule object, use the Get-CMSoftwareMeteringRule cmdlet.

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

Specifies a name for a product that a rule meters.

Type:String
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False