Redirection to ‘NUL’ failed: FileStream will not open Win32 devices

Question:

I am trying to remove some verbosity from a choco install command within AppVeyor. Here is what I been trying (as suggested here):

However it fails with:

So my question is there a way to suppress the verbosity of a choco install command within PowerShell on AppVeyor?

Answer:

nul is batch syntax. In PowerShell you can use $null instead, as Mathias R. Jessen pointed out in his comment:


Other options are piping into the Out-Null cmdlet, collecting the output in a variable, or casting it to void:

Source:

Redirection to ‘NUL’ failed: FileStream will not open Win32 devices by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply