Table of Contents

About

To discard the output of a command, you don't set the echo to off as in DOS but you send it to Out-Null

same as /dev/null on Linux

Example with new Item

New-Item -Path . -Name "testfile1.txt" -ItemType "file" | Out-Null

Documentation / Reference