powershellpowershell-3.0import-module

Suppressing VERBOSE for Import-Module


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?


Solution

  • Try forcing the -Verbose parameter to $false:

    Import-Module Carbon -Verbose:$false