Get-CMSoftwareMeteringRule
Gets Configuration Manager software metering rules.
Syntax
Get-CMSoftwareMeteringRule
[-ProductName <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Get-CMSoftwareMeteringRule
-Id <String>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
The Get-CMSoftwareMeteringRule cmdlet gets one or more software metering rules in 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 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 Configuration Manager, see Introduction to Software Metering 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: Get rules for a product
PS XYZ:\> Get-CMSoftwareMeteringRule -ProductName "Accounting Package"
This command gets software metering rules for the product named Accounting Package.
Parameters
-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 |
-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 for software metering rules.
Type: | String |
Aliases: | RuleId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProductName
Specifies a name for a product that a rule meters.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | True |
Inputs
None
Outputs
IResultObject[]
IResultObject