Export (0) Print
Expand All
Expand Minimize

Update-CMApplicationStatistic

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Update-CMApplicationStatistic

Updates the statistics for an application.

Syntax

Parameter Set: SearchByIdMandatory
Update-CMApplicationStatistic -Id <String[]> [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Update-CMApplicationStatistic -Name <String[]> [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Update-CMApplicationStatistic -InputObject <IResultObject> [ <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.


Aliases

CIId

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-InputObject<IResultObject>

Specifies a Configuration Manager application statistic object.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String[]>

Specifies an array of names of applications.


Aliases

LocalizedDisplayName

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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

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.


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

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft