So, the Windows PowerShell 2.0 Software Development Kit is basically a collection of samples, and it has been released separately from the Windows Platform SDK for a change, making the download a tiny 2.35MB …
There are lots of examples in there in C# (no other languages), and honestly, some of them ought to make it into PSCX or some other project where people could grab pre-compiled versions
- A Template for creating PSProviders, and a sample PSProvider (for Access databases).
- A sample of participating in Transactions (a set of “transacted comment” cmdlets for creating comments that go along with a transaction).
- Example cmdlets: Select-Object, Select-String, Get-Process, Stop-Process
- Dealing with issues with Serialization in PowerShell
- PowerShell Eventing:
- Deriving from ObjectEventRegistrationBase to create Register-FileSystemEvent
- Receiving notifications from PowerShell Events on remote computers.
- Hosting APIs, including (among others):
- Restricted runspaces
- Runspace pools
- Remote runspaces (and remote runspace pools)
- Running commands in parallel or sequentially
- Calling Cmdlets and passing parameters
- Reproducing the default PowerShell.exe output
Honestly, if you’re a developer that’s been wondering about learning to code cmdlets, or host PowerShell as a scripting engine, now’s the time.