Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes a health report instance.
Parameter Set: Default
Remove-WssReport [-Id] <Guid> [ <CommonParameters>]
The Remove-WssReport cmdlet removes a single health report instance identified by its ID.
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 |
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.
System.Guid
Report
The output type is the type of the objects that the cmdlet emits.
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:\>