We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Execute Write-Error "This is an error."
Write-Error "This is an error."
Displayed error message is prefixed with "ERROR: ": `ERROR: This is an error.`
Displayed error message is prefixed with cmdlet name: `Write-Error: This is an error.`
No response
PSVersion 7.2.7 PSEdition Core GitCommitId 7.2.7 OS Microsoft Windows 10.0.22621 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0
Prerequisites
Steps to reproduce
Execute
Write-Error "This is an error."Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals