AD | Application | AWS | Azure | Cloud | Database | Enterprise | Environmental | Event Log | File System | IoT | IT Service | Network/System | NIS2 | Infra | Performance | Protocol | SaaS | Security | Service Level | Storage | Linux | VMware | VoIP | Web | Wireless | SNMP

MonitorTools.com » Administration » Powershell » Powershell 2.0 » Write-Error

Write-Error - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Write-Error

Short description
Writes an object to the error stream.

Syntax


Description
The Write-Error cmdlet writes an error to the Windows PowerShell error stream. By default, errors are sent to the h
ost program to be displayed, along with output.

You can write an error by submitting an error message string, an ErrorRecord object, or an Exception object.  Use t
he other parameters of Write-Error to populate the error record.

M