About 1,670,000 results
Open links in new tab
  1. Use the PowerShell Passthru Parameter and Get Back Objects

    Nov 18, 2011 · Well, ML, as you can see, using the passthru parameter forces Windows PowerShell to go ahead and pass newly created or modified objects instead of hiding them. By …

  2. PowerShell -PassThru Parameter - ZetCode

    Feb 15, 2025 · You can chain multiple operations with -PassThru to maintain the pipeline. This example starts, waits for, and stops a process while keeping the object flowing through each …

  3. When to use -passthru : r/PowerShell - Reddit

    Jul 10, 2018 · The PassThru parameter lets you request output from cmdlets that return no output by default. It’s used most often to verify that the cmdlet did what you intended.

  4. powershell - Use passthru to make sure the cmdlet is finished

    Apr 14, 2016 · -Passthru is used to pass current object (i.e. AppPool) further down the pipeline. I don't think that it's guaranteed, that Start/Stop-WebAppPool cmdlets will wait for current …

  5. 16. PowerShell - "Passthru" Parameter

    With the "Passthru" parameter, you have greater control over the output generated by a cmdlet or command. You can capture the object passed through the pipeline and customize the output …

  6. The PassThru Parameter: Gimme Output - SAPIEN Blog

    Oct 6, 2014 · The PassThru parameter lets you request output from cmdlets that return no output by default. It’s used most often to verify that the cmdlet did what you intended.

  7. Start-Process (Microsoft.PowerShell.Management) - PowerShell

    -Pass Thru Returns a process object for each process that the cmdlet started. By default, this cmdlet doesn't generate any output.

  8. `-PassThru` as common parameter · Issue #19989 · PowerShell ... - GitHub

    Jul 17, 2023 · Even without any (output-check) logic, using the -PassThru switch will just be something you shouldn't use on a script that already outputs to the success stream (like …

  9. PowerShell - using Out-GridView tables | Windows 11 Forum

    Feb 21, 2022 · In this tutorial, I will show just a few practical examples about using Out-GridView with -PassThru, to let you see and understand how it works. See official Out-GridView …

  10. .net - pwsh: How to use `Start-Process -Passthru` AND redirect …

    Apr 24, 2023 · i'm banging my head against the evergreen problem of stdout and stderr redirection. In powershell, you can do $p = Start-Process -Passthru -NoNewWindow ... to start …