Peering into script modules

Sometimes it’s handy to access internal elements of script modules. For instance you may be using a 3rd party module in your application and would like to see the internal state for debugging purposes. This can be accomplished with the invoke operator (&) which allows you to access a modules session state: & $module {script block} The script block is executed in the context of the module. Create Read More...

Read the complete post at

Posted Jun 03 2009, 07:49 AM by Windows PowerShell Blog
Filed under: ,
Copyright 2012 All rights reserved.