Skip to content

Commit 823b7d1

Browse files
authored
Add note to -PassThru (#11487)
1 parent 9f1ad36 commit 823b7d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,11 @@ Accept wildcard characters: False
453453
Indicates that the cmdlet returns the results, in addition to writing them to a file. This parameter
454454
is valid only when the **OutFile** parameter is also used in the command.
455455

456+
> [!NOTE]
457+
> When you use the **PassThru** parameter, the output is written to the pipeline but the file is
458+
> empty. For more information, see
459+
> [PowerShell Issue #15409](https://github.com/PowerShell/PowerShell/issues/15409).
460+
456461
```yaml
457462
Type: System.Management.Automation.SwitchParameter
458463
Parameter Sets: (All)

0 commit comments

Comments
 (0)