Inheriting Verbose Preference in Windows PowerShell Module Functions

When specifying verbose preference this will only be inherited by the scripts module functions, if specified in the global scope. However, it is possible to use an advanced function to access the variable preference using the ‘$PSCmdlet.GetVariableValue()’ method to access the SessionState object and inherit the preference value. This file contains bidirectional Unicode text that may … More Inheriting Verbose Preference in Windows PowerShell Module Functions