Export (0) Print
Expand All
Expand Minimize

New-CMSoftwareMeteringRule

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

New-CMSoftwareMeteringRule

Creates a Configuration Manager software metering rule.

Syntax

Parameter Set: New
New-CMSoftwareMeteringRule -Path <String> -SiteCode <String> [-Comment <String> ] [-FileVersion <String> ] [-LanguageId <Int32> ] [-OriginalFileName <String> ] [-ProductName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The New-CMSoftwareMeteringRule cmdlet creates a Microsoft System Center 2012 Configuration Manager software metering rule. A software metering rule specifies a piece of software, along with version information. You can obtain necessary file information from Windows Explorer.

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.

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

-Comment<String>

Specifies a comment for a software metering rule.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-FileVersion<String>

Specifies a version of the software that a rule meters.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-LanguageId<Int32>

Specifies a LocaleID of the software that a rule meters. For more information and a list of locale identifiers, see the Locale IDs Assigned by Microsoft topic at http://go.microsoft.com/fwlink/?LinkId=262651.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-OriginalFileName<String>

Specifies an original file name of the software that a rule meters. This parameter can differ from the Path parameter if a user changed the name.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Path<String>

Specifies a file path of the software that a rule meters.


Aliases

FileName

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ProductName<String>

Specifies a name of software that a rule meters.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SiteCode<String>

Specifies a site code for a Configuration Manager site.


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: Create a software metering rule

This command creates a software metering rule for the System Center 2012 Configuration Manager site CM1. The command specifies the file name, version, original file name, and product name for the software product.


PS C:\> New-CMSoftwareMeteringRule -Path "Notepad.exe" -SiteCode "CM1" -FileVersion "6.1.7600.16385" -OriginalFileName "NOTEPAD.EXE" -ProductName "Microsoft Windows Operating System" 
ApplyToChildSites : True
Comment :
Enabled : True
FileName : Notepad.exe
FileVersion : 6.1.7600.16385
LanguageID :
LastUpdateTime :
OriginalFileName : NOTEPAD.EXE
ProductName : Microsoft Windows Operating System
RuleID :
SecurityKey :
SiteCode : CM1
SourceSite :

Related topics

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