Please feel free to provide feedback or file bugs here.

Format-* incorrectly format warning objects

# Given this:

<#PS#> $a = Write-Warning test 3>&1

# PowerShell will incorrectly prepend "WARNING: " to:

<#PS#> $a | ft * -f

WriteWarningStream FullyQualifiedWarningId Message InvocationInfo PipelineIterationInfo
------------------ ----------------------- ------- -------------- ---------------------
WARNING: True test System.Management.Automation.InvocationInfo {0, 0, 0}

<#PS#> $a | fl * -f

WARNING: WriteWarningStream : True
WARNING: FullyQualifiedWarningId :
WARNING: Message : test
WARNING: InvocationInfo : System.Management.Automation.InvocationInfo
WARNING: PipelineIterationInfo : {0, 0, 0}
WARNING:

1 vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)

We’ll send you updates on this idea

Derp McDerp shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base