Remove-CMSoftwareMeteringRule
Remove-CMSoftwareMeteringRule
Removes Configuration Manager software metering rules.
構文
Parameter Set: SearchByIdMandatory
Remove-CMSoftwareMeteringRule -Id <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByNameMandatory
Remove-CMSoftwareMeteringRule -ProductName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Remove-CMSoftwareMeteringRule -InputObject <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Remove-CMSoftwareMeteringRule cmdlet removes one or more software metering rules from Microsoft System Center 2012 Configuration Manager.
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 to disable by ID or by product name, or use the Get-CMSoftwareMeteringRule cmdlet. You can use the Disable-CMSoftwareMeteringRule to temporarily suspend a rule.
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.
パラメーター
-Force
Performs the action without a confirmation message.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Id<String[]>
Specifies an array of IDs for software metering rules.
エイリアス |
RuleId |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-InputObject<IResultObject>
Specifies a software metering rule object. To obtain a software metering rule object, use the Get-SoftwareMeteringRule cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ProductName<String>
Specifies a name for a product that a rule meters.
エイリアス |
なし |
必須? |
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: Remove rules for a product
This command removes any software metering rules for a product called Accounting Package. In this example, there are two rules for that product. The command does not include the Force parameter, so the cmdlet prompts for confirmation for both rules.
PS C:\> Remove-CMSoftwareMeteringRule -ProductName "Accounting Package"