Clear-CMSiteStatusMessageCount
Clear-CMSiteStatusMessageCount
Clears the message count in Configuration Manager.
Syntax
Parameter Set: SearchByName
Clear-CMSiteStatusMessageCount -ComputerName <String> -Severity <Severity> {All | Error | Information | Warning} -SiteCode <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Clear-CMSiteStatusMessageCount cmdlet clears the message count in Microsoft System Center 2012 Configuration Manager.
Parameters
-ComputerName<String>
Specifies a name of a computer in Configuration Manager
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Severity<Severity>
Specifies a message severity. Valid values for this parameter are: All, Error, Information, and Warning.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-SiteCode<String>
Specifies a site code in Configuration Manager.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
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).
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: Clear the status message count
This command clears the messge count for the computer.
PS C:\> Clear-CMSiteStatusMessageCount -ComputerName "Contoso-Test" -Severity Error -SiteCode "CM1"