Get-CMSoftwareMeteringRule

SYNOPSIS

Gets Configuration Manager software metering rules.

SYNTAX

SearchByName (Default)

Get-CMSoftwareMeteringRule [-ProductName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling]
 [<CommonParameters>]

SearchByIdMandatory

Get-CMSoftwareMeteringRule -Id <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
 [<CommonParameters>]

DESCRIPTION

The Get-CMSoftwareMeteringRule cmdlet gets one or more software metering rules in Microsoft System Center Configuration Manager. You can use this cmdlet to get rules to pass to other cmdlets, such as the Enable-CMSoftwareMeteringRule cmdlet or the Remove-CMSoftwareMeteringRule cmdlet.

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 by ID or by product name.

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

EXAMPLES

Example 1: Get rules for a product

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

This command gets software metering rules for the product named Accounting Package.

PARAMETERS

-DisableWildcardHandling

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Id

Specifies an array of IDs for software metering rules.

Type: String
Parameter Sets: SearchByIdMandatory
Aliases: RuleId

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProductName

Specifies a name for a product that a rule meters.

Type: String
Parameter Sets: SearchByName
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

Disable-CMSoftwareMeteringRule

Enable-CMSoftwareMeteringRule

New-CMSoftwareMeteringRule

Remove-CMSoftwareMeteringRule

Set-CMSoftwareMeteringRule