Skip to content

Commit

Permalink
Add note to -PassThru (#11487)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler authored Oct 21, 2024
1 parent 9f1ad36 commit 823b7d1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 823b7d1

Please sign in to comment.