PowerShell Team

Automating the world one-liner at a time…

Howto: Invoking cmdlets from within a cmdlet…

A fairly common question cmdlet developers have is "How do I invoke a cmdlet from within a cmdlet". This usually comes up when converting a script or function into a compiled cmdlet. Marco Shaw is writing a nice series of blog posts covering this topic using the PowerGadgets  cmdlets as examples. Check it out at:  http://...

Linking against RC2

The RC2 SDK is not yet available.  Until it is, here is a quick and dirty way for you to find/extract the DLLs to link your code against.  Do this from a RC2 shell and you'll a copy of the DLLS in C:\SDK:   PS>[appdomain]::currentdomain.getassemblies() | where {($_.fullname -match "system.management") -OR ($_.fullname –...

PowerShell Namespsaces

A summary of the Namespaces PowerShell defines and uses.   System.Management.Automation System.Management.Automation serves as the root namespace for PowerShell.  The namespace contains the types a developer would use to implement a Cmdlet.   Sub-namespaces are defined for specific sections of the API that are used by specific ...