Powershell

If you haven’t already, run, do not walk to the MSDN Code Gallery to grab the PowerShell Pack (a part of the upcoming Windows 7 Resource Kit).

As announced on the PowerShell team blog, and discussed at great length on Episode 88 of the PowerScripting Podcast, the PowerShell Pack is a set of ten modules, nested into one for ease of installation. There is a ton of great stuff in here. I wrote up a bit of code to list all of the included functions:

$m = Get-Module PowerShellPack

$n = $m.NestedModules | Where-Object { $_.Name -ne 'WPK' } 

foreach ( $module in $n ) {

    Write-Host -ForegroundColor Green "Module: $( $module.name )" -NoNewline

    $module.ExportedCommands.Values | Sort-Object Name | Format-Wide Name

}

As you see in the Where-Object clause there, I am excluding the WPK module. The reason is simply due to the nature of that module, it has hundreds of functions and is really deserving of its own blog post—or book for that matter.

I’m not going to list the full output because I think that’s just cheesy Google gaming, but I will leave you with a teaser:

PS > Get-Module powershellpack | select -ExpandProperty NestedModules

 

ModuleType Name                      ExportedCommands

---------- ----                      ----------------

Script     IsePack                   {Push-CurrentFileLocation, Select-CurrentTextAsVariable, C...

Script     TaskScheduler             {Remove-Task, Get-ScheduledTask, Stop-Task, Add-TaskTrigge...

Script     WPK                       {Get-DependencyProperty, New-ModelVisual3D, New-DiscreteVe...

Script     FileSystem                {Get-FreeDiskSpace, New-Zip, Resolve-ShortcutFile, Mount-S...

Script     DotNet                    {Get-CommandWithParameterType, Get-ProgID, Get-Type}

Script     PSImageTools              {Add-CropFilter, Add-RotateFlipFilter, Add-OverlayFilter, ...

Script     PSRss                     {Read-Article, New-Feed, Remove-Article, Remove-Feed...}

Script     PSCodeGen                 {New-Enum, New-ScriptCmdlet, New-PInvoke}

Script     PSUserTools               {Start-ProcessAsAdministrator, Get-CurrentUser, Test-IsAdm...

Script     PSSystemTools             {Test-32Bit, Get-USB, Get-OSVersion, Get-MultiTouchMaximum...

: http://halr9000.com/article/832

2010-01-17 09:33:45

[...] It’s huge because  I can once again share my PowerShell scripts with colleagues who use different operating systems.   More on why it’s huge here:  Halr9000.com [...]

  • Microblog

  • Recent Posts

  • Recent Comments

  • meta

  • PowerShell Blogroll