New-CMSoftwareMeteringRule

New-CMSoftwareMeteringRule

Creates a Configuration Manager software metering rule.

構文

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

詳細説明

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 (https://go.microsoft.com/fwlink/?LinkId=268432) on TechNet.

パラメーター

-Comment<String>

Specifies a comment for a software metering rule.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-FileVersion<String>

Specifies a version of the software that a rule meters.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

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 https://go.microsoft.com/fwlink/?LinkId=262651.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Path<String>

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

エイリアス

FileName

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ProductName<String>

Specifies a name for a product that a rule meters.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SiteCode<String>

Specifies a site code for a Configuration Manager site.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

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" 

関連トピック

Disable-CMSoftwareMeteringRule

Enable-CMSoftwareMeteringRule

Get-CMSoftwareMeteringRule

Remove-CMSoftwareMeteringRule

Set-CMSoftwareMeteringRule