Search notes:

PowerShell cmdLet Write-Warning

The write-warning cmdLet writes a string to the warning stream. What then happens with this string dependes on the value of the preference variable $warningPreference.

See also

$host.ui.writeWarningLine('text')
The Warning property of System.Management.Automation.PSDataStreams
The cmdLet verb write
Powershell command noun: warning

Index