Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Updates the statistics for an application.

Syntax

Update-CMApplicationStatistic -Id <String[]> [<CommonParameters>]

Update-CMApplicationStatistic -InputObject <IResultObject> [<CommonParameters>]

Update-CMApplicationStatistic -Name <String[]> [<CommonParameters>]

Detailed Description

The Update-CMApplicationStatistic cmdlet updates the statistics for a Microsoft System Center 2012 Configuration Manager application.

Parameters

-Id [<String[]>]

Specifies an array of IDs of applications.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   True (ByPropertyName)
Accept wildcard characters?   false

-InputObject [<IResultObject>]

Specifies a Configuration Manager application statistic object.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   True (ByPropertyName)
Accept wildcard characters?   false

-Name [<String[]>]

Specifies an array of names of applications.

Required?   true
Position?   named
Default value?  
Accept pipeline input?   True (ByPropertyName)
Accept wildcard characters?   false

Input Type

Return Type

Notes

Examples

Example 1: Update statistics for an application by ID

PS> PS C:\>Update-CMApplicationStatistic -Id "16781415"

This command updates statistics for an application that has the ID 16781415.

Example 2: Update statistics for an application by name

PS> PS C:\>Update-CMApplicationStatistic -Name "Test"

This command updates statistics for an application named Test.

Example 3: Update statistics for an application by name by using a variable

PS> PS C:\>$App = Get-CMApplication -Name "Test" PS C:\>Update-CMApplicationStatistic -InputObject $App

This example updates the statistics for an application.

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.