Export (0) Print
Expand All
Expand Minimize

Remove-CMSoftwareMeteringRule

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Remove-CMSoftwareMeteringRule

Removes Configuration Manager software metering rules.

Syntax

Parameter Set: SearchByIdMandatory
Remove-CMSoftwareMeteringRule -Id <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Remove-CMSoftwareMeteringRule -ProductName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Remove-CMSoftwareMeteringRule -InputObject <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Remove-CMSoftwareMeteringRule cmdlet removes one or more software metering rules from Microsoft System Center 2012 Configuration Manager.

Software metering monitors and collects software usage data from System Center 2012 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 to disable by ID or by product name, or use the Get-CMSoftwareMeteringRule cmdlet. You can use the Disable-CMSoftwareMeteringRule to temporarily suspend a rule.

For more information about software metering in System Center 2012 Configuration Manager, see Introduction to Software Metering in Configuration Manager in the TechNet library at http://go.microsoft.com/fwlink/?LinkId=268432.

Parameters

-Force

Removes a software metering rule object without prompting you for confirmation. By default, the cmdlet prompts you for confirmation before it proceeds.


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 for software metering rules.


Aliases

RuleId

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-InputObject<IResultObject>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ProductName<String>

Specifies a name for a product that a rule meters.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


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.

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: Remove rules for a product

This command removes any software metering rules for a product called Accounting Package. In this example, there are two rules for that product. The command does not include the Force parameter, so the cmdlet prompts for confirmation for both rules.


PS C:\> Remove-CMSoftwareMeteringRule -ProductName "Accounting Package"
Remove
Are you sure you wish to remove SoftwareMeteringRule: RuleID=16777220?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y

Remove
Are you sure you wish to remove SoftwareMeteringRule: RuleID=16777221?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft