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.
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 |
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 |
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 |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
This command updates statistics for an application that has the ID 16781415.
PS C:\> Update-CMApplicationStatistic -Id "16781415"
This command updates statistics for an application named Test.
PS C:\> Update-CMApplicationStatistic -Name "Test"
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