Remove-WssReport

Remove-WssReport

Removes a health report instance.

Sintaxis

Parameter Set: Default
Remove-WssReport [-Id] <Guid> [ <CommonParameters>]

Descripción detallada

The Remove-WssReport cmdlet removes a single health report instance identified by its ID.

Parámetros

-Id<Guid>

Specifies the ID of a health report instance. The cmdlet removes the health report instance that you specify.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • System.Guid

    Report

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

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:\> 

Temas relacionados

Get-WssReport

New-WssReport

Send-WssReport