Suppressing VERBOSE for Import-Module

Brett Postin picture Brett Postin · Mar 20, 2014 · Viewed 13.8k times · Source

I'm importing Carbon into my PowerShell script; however when running my script with -Verbose, Carbon also outputs a lot of VERBOSE statements.

Is it possible to Import-Module silently such that I can ignore the verbose statements in the imported module and leave just my own?

Answer

jbsmith picture jbsmith · Mar 20, 2014

Try Import-Module Carbon -Verbose:$false