Set-CMSoftwareMeteringSetting

Set-CMSoftwareMeteringSetting

Configures Configuration Manager software metering properties.

構文

Parameter Set: SetByName
Set-CMSoftwareMeteringSetting [-AutoCreateDisabledRule <Boolean> ] [-AutoCreatePercentage <Int32> ] [-AutoCreateThreshold <Int32> ] [-DataRetentionDayCount <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Set-CMSoftwareMeteringSetting cmdlet configures software metering properties for Microsoft System Center 2012 Configuration Manager.

Software metering can use software inventory information to create software metering rules. When you select this feature, System Center 2012 Configuration Manager identifies multiple computers that use the same software and creates a rule to track that usage in the future. You decide how long to keep software metering data that System Center 2012 Configuration Manager uses to create rules.

To prevent System Center 2012 Configuration Manager from creating too many rules, you can specify what percentage of computers use a piece of software before System Center 2012 Configuration Manager creates a rule. You can also set a rule threshold. If the number of software metering rules exceeds this threshold, System Center 2012 Configuration Manager stops automatically creating rules.

When System Center 2012 Configuration Manager creates a rule automatically, it creates that rule as disabled. A disabled rule does not collect information from clients. You can use the Enable-CMSoftwareMeteringRule cmdlet to enable a rule. You can use the Remove-CMSoftwareMeteringRule cmldet to remove unwanted rules.

パラメーター

-AutoCreateDisabledRule<Boolean>

Specifies whether Configuration Manager automatically creates software metering rules. If this value is $True, Configuration Manager automatically creates software metering rules. If this value is $False, it does not automatically create rules.

When Configuration Manager creates rules, it creates them as disabled.

You can use the values set by other parameters of this cmdlet to limit creation of rules.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-AutoCreatePercentage<Int32>

Specifies a percentage of computers that use a piece of software for Configuration Manager to create a rule. Software metering calculates the number of computers as all the computers monitored for software metering by Configuration Manager, not just for a single site. Valid values are integers from 1 through 99

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-AutoCreateThreshold<Int32>

Specifies a number of software metering rules as a threshold. When Configuration Manager exceeds this threshold, it stops automatically creating rules. The number of rules counted for this threshold includes all software metering rules, not only those that Configuration Manager creates automatically. Valid values are integers from 1 through 1000.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-DataRetentionDayCount<Int32>

Specifies a number of days that Configuration Manager keeps software metering data.

エイリアス

なし

必須?

false

位置は?

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: Disable automatic rule creation

This command disables automatic rule creation. System Center 2012 Configuration Manager does not automatically create software metering rules after you run this command.

PS C:\> Set-CMSoftwareMeteringSetting -AutoCreateDisabledRule $False

Example 2: Configure automatic rule creation

This command enables automatic rule creation and sets properties for it. This command sets the percentage of computers that use a piece of software to 50 percent, the rule threshold to 200, and the amount of time System Center 2012 Configuration Manager keeps software metering data to 30 days.

PS C:\> Set-CMSoftwareMeteringSetting -AutoCreateDisabledRule $True -AutoCreatePercentage 50 -AutoCreateThreshold 200 -DataRetentionDayCount 30

Example 3: Change automatic rule creation percentage

This command changes the percentage of computers that use a piece of software to 20 percent.

PS C:\> Set-CMSoftwareMeteringSetting -AutoCreatePercentage 20

関連トピック

Get-CMSoftwareMeteringSetting

Enable-CMSoftwareMeteringRule

Remove-CMSoftwareMeteringRule