PowerShell - Suppress stderr output
Published: Powershell Estimated reading time: ~1 minutes
stderr to null
@ $commandWithArgs 2>&1 | out-null
or
@ $commandWithArgs --quiet --no-verbose > $null 2>&1
all output to null
@ $commandWithArgs *> | $null
Published: Powershell Estimated reading time: ~1 minutes
@ $commandWithArgs 2>&1 | out-null
or
@ $commandWithArgs --quiet --no-verbose > $null 2>&1
@ $commandWithArgs *> | $null