Remove-WssReport
Remove-WssReport
Removes a health report instance.
Syntax
Parameter Set: Default
Remove-WssReport [-Id] <Guid> [ <CommonParameters>]
Detailed Description
The Remove-WssReport cmdlet removes a single health report instance identified by its ID.
Parameters
-Id<Guid>
Specifies the ID of a health report instance. The cmdlet removes the health report instance that you specify.
Aliases |
none |
Required? |
true |
Position? |
1 |
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 (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.
System.Guid
Report
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Remove an instance of a health report
The first command uses the Get-WssReport cmdlet to get all instances of reports, and saves the results in the $Reports variable.
The second command removes an instance of a health report by using the ID of the first instance in the $Reports variable.
PS C:\> $Reports = Get-WssReport
PS C:\> Remove-WssReport $Reports[0].Id
PS C:\>