About 84 results
Open links in new tab
  1. What's the better (cleaner) way to ignore output in PowerShell?

    In fact, there's nothing forcing anyone to use Out-Null with a pipeline at all, so the best way to show the overhead of a pipeline is to invoke Out-Null with and without it.

  2. Redirecting output to $null in PowerShell, but ensuring the variable ...

    May 4, 2011 · Recently, I had to shut up powershell on a Linux host, this wasn't that obvious to figure out. After back and forth I found out that wrapping a command in and adding a explicit redirection …

  3. Why Out-Null? : r/PowerShell - Reddit

    PowerShell is a cross-platform (Windows, Linux, and macOS) automation tool and configuration framework optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and …

  4. Hide powershell output - Stack Overflow

    Oct 5, 2017 · The script takes a string and copies all files and folders from the static origin path to the given root string, amending some folders for structure clarity. It works fine but prints out the results …

  5. out-null vs 6>$null : r/PowerShell - Reddit

    May 6, 2022 · PowerShell is a cross-platform (Windows, Linux, and macOS) automation tool and configuration framework optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), …

  6. How do I suppress standard error output in PowerShell?

    Nov 23, 2018 · Only success output is sent through to the pipeline (stdout output from external programs is sent to PowerShell's success output stream). Redirections such as 2>&1 act on individual …

  7. How to tell PowerShell to wait for each command to end before …

    Normally, for internal commands PowerShell does wait before starting the next command. One exception to this rule is external Windows subsystem based EXE. The first trick is to pipeline to Out …

  8. powershell - send cmdlet pipe output to out-null by default? - Stack ...

    Dec 19, 2017 · The only way I've found to get around this is to pipe the output to out-null or assign it to a variable that I throw away. What I want to do, is at the top of my script reassign the out-default to out …

  9. Redirecting output to $null in PowerShell, but ensuring the variable ...

    Jul 11, 2024 · In Powershell Core/7.4.x they are more or less equivalent But in Powershell Desktop/5.1 there are SENSIBLE differences in performance: redirecting to $null is generally the most efficient.

  10. powershell - How to maintain transcript output with Out-Null? - Stack ...

    Apr 30, 2024 · Start-transcript includes all command that the user types and all output that appears on the console Out-null hides the output instead of sending it down the pipeline or displaying it Having …