Update-CMApplicationStatistic

Updates the statistics for an application.

Syntax

Update-CMApplicationStatistic
      [-Id] <Int32>
      [-Confirm]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-PassThru]
      [-WhatIf]
      [<CommonParameters>]
Update-CMApplicationStatistic [-InputObject]  [-Confirm] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-PassThru] [-WhatIf] []
Update-CMApplicationStatistic [-Name]  [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-PassThru] [-WhatIf] []

Description

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

Examples

Example 1: Update statistics for an application by ID

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 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 C:\> $App = Get-CMApplication -Name "Test"
PS C:\> Update-CMApplicationStatistic -InputObject $App

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.

Required Parameters

-Id

Specifies an array of IDs of applications.

Type:Int32
Aliases:CIId, CI_ID
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies a Configuration Manager application statistic object.

Type:IResultObject
Aliases:Application
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies an array of names of applications.

Type:String
Aliases:LocalizedDisplayName, ApplicationName
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False