Get-CMSoftwareMeteringRule
Get-CMSoftwareMeteringRule
Gets Configuration Manager software metering rules.
Syntax
Parameter Set: SearchByName
Get-CMSoftwareMeteringRule [-ProductName <String> ] [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Get-CMSoftwareMeteringRule -Id <String[]> [ <CommonParameters>]
Detailed Description
The Get-CMSoftwareMeteringRule cmdlet gets one or more software metering rules in Microsoft System Center 2012 SP1 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 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 by ID or by product name.
For more information about software metering in System Center 2012 Configuration Manager, see Introduction to Software Metering in Configuration Manager (https://go.microsoft.com/fwlink/?LinkId=268432) on TechNet.
Parameters
-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 |
-ProductName<String>
Specifies a name for a product that a rule meters.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
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: Get rules for a product
This command gets software metering rules for the product named Accounting Package.
PS C:\> Get-CMSoftwareMeteringRule -ProductName "Accounting Package"