Skip to content

Commit

Permalink
Add note to -PassThru
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler committed Oct 21, 2024
1 parent 9f1ad36 commit 0c3bf7a
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 0c3bf7a

Please sign in to comment.