Update-CMApplicationStatistic
Update-CMApplicationStatistic
Updates the statistics for an application.
構文
Parameter Set: SearchByIdMandatory
Update-CMApplicationStatistic -Id <String[]> [ <CommonParameters>]
Parameter Set: SearchByNameMandatory
Update-CMApplicationStatistic -Name <String[]> [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Update-CMApplicationStatistic -InputObject <IResultObject> [ <CommonParameters>]
詳細説明
The Update-CMApplicationStatistic cmdlet updates the statistics for a Microsoft System Center 2012 Configuration Manager application.
パラメーター
-Id<String[]>
Specifies an array of IDs of applications.
エイリアス |
CIId |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-InputObject<IResultObject>
Specifies a Configuration Manager application statistic object.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String[]>
Specifies an array of names of applications.
エイリアス |
LocalizedDisplayName |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Update statistics for an application by ID
This command updates statistics for an application that has the ID 16781415.
PS C:\> Update-CMApplicationStatistic -Id "16781415"
Example 2: Update statistics for an application by name
This command updates statistics for an application named Test.
PS C:\> Update-CMApplicationStatistic -Name "Test"
Example 3: Update statistics for an application by name by using a variable
The first command gets the application object named Test and stores the object in the $App variable.
The second command updates statistics for the application stored in $App.
PS C:\> $App = Get-CMApplication -Name "Test"
PS C:\> Update-CMApplicationStatistic -InputObject $App