How to remove Powershell folder creation message?

When Powershell creates a folder, it returns a message like this:

Mode                 LastWriteTime         Length Name                         
----                 -------------         ------ ----                         
d-----        24/12/2022     20:42                ᰓ

Question: How to remove that type of message? I need to create many folders, so this message floods the console and it appears to hinder the speed of the creation of folders.

There are a few options to suppress the output of the cmdlet …

  • Assign the output to a variable, this variable can be $NULL
  • Pipe the output to Out-Null
  • cast the output to the type [VOID]
1 Like