From 0c3bf7a34c5662ba2250a215b70c716c48fd9086 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Mon, 21 Oct 2024 13:21:10 -0500 Subject: [PATCH] Add note to -PassThru --- .../5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md b/reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md index 6a82a69e020c..e60be6dc1538 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md @@ -453,6 +453,11 @@ Accept wildcard characters: False Indicates that the cmdlet returns the results, in addition to writing them to a file. This parameter is valid only when the **OutFile** parameter is also used in the command. +> [!NOTE] +> When you use the **PassThru** parameter, the output is written to the pipeline but the file is +> empty. For more information, see +> [PowerShell Issue #15409](https://github.com/PowerShell/PowerShell/issues/15409). + ```yaml Type: System.Management.Automation.SwitchParameter Parameter Sets: (All)