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 http://blogs.msdn.com/powershell/archive/2009/06/03/peering-into-script-modules.aspx


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