Showing posts with label Modules. Show all posts
Showing posts with label Modules. Show all posts

Monday, August 22, 2011

Some addendum on modules

If you add modules like  PSUserTools from Microsoft you receive some enhanced functionality. You also receive some well conceived script.  After you have imported your modules ('import-module'), you can use a function like that below to list all the exported commands:


function Global:get-module_exports {

[CmdletBinding()]
Param(
[Parameter(Mandatory=$true)]
$ModName
          )
$commands=(get-module $ModName).ExportedCommands
[Array[]]$list=(($commands).Values) | %{$_.Name} | Sort
$list
}

Saturday, July 31, 2010

Looking at Process, Threads, Modules with Powershell 2.0

I have published "Looking at Processes, Modules, and Threads with Powershell 2.0 Part I".  The paper concerns itself with comparing Processes, Modules, and Threads and offers some discussion for comparing their changes over time. See also:
http://www.rmfdevelopment.com/PowerShell_Scripts/diff_PMT.ps1 

http://rmfdevelopment.com/PowerShell_Scripts/diff_PMT_adv.ps1