Write-Error |
Écrire l'erreur |
---|---|
PowerShell |
Syntaxe
Write-Error [-Message] String [-Category ErrorCategory] [-ErrorId String] [-TargetObject Object] [-RecommendedAction String] [-CategoryActivity String] [-CategoryReason String] [-CategoryTargetName String] [-CategoryTargetType String] [CommonParameters] |
Write-Error -Exception Exception [[-Message] String] [-Category ErrorCategory] [-ErrorId String] [-TargetObject Object] [-RecommendedAction String] [-CategoryActivity String] [-CategoryReason String] [-CategoryTargetName String] [-CategoryTargetType String] [CommonParameters] |
Write-Error -ErrorRecord ErrorRecord [-RecommendedAction String] [-CategoryActivity String] [-CategoryReason String] [-CategoryTargetName String] [-CategoryTargetType String] [CommonParameters] |
Description
Cette commande permet d'écrire un objet vers le flux de données d'erreur.
Dernière mise à jour : Mardi, le 12 Janvier 2021