For the complete documentation index, see llms.txt. This page is also available as Markdown.

Write-PSUError

SINOSSI

Scrive un errore nel flusso di errore nei job PSU.

SINTASSI

Write-PSUError -ErrorRecord <ErrorRecord> [<CommonParameters>]

DESCRIZIONE

Scrive un errore nel flusso di errore nei job PSU.

ESEMPI

Esempio 1

try {
    throw "Error"
} catch {
    Write-PSUError $_
}

Genera un'eccezione ma non fa fallire il job. L'errore verrà visualizzato nel log degli errori di PSU.

PARAMETRI

-ErrorRecord

Il record di errore da visualizzare nel log.

CommonParameters

Questo cmdlet supporta i parametri comuni: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable e -ProgressAction. Per maggiori informazioni, consulti about_CommonParameters.

INPUT

System.Management.Automation.ErrorRecord

OUTPUT

System.Object

NOTE

COLLEGAMENTI CORRELATI

Ultimo aggiornamento

È stato utile?