A guide to PowerShell’s Advanced Functions
Someone asked on the PowerShell Newsgroup about writing Advanced Functions, and specifically: looking for a … guide to putting together an advanced function that is visible and usable every time I start Powershell. By visible I mean that when I do a ‘get-command’ I want my [advanced function]s to be listed alongside all the regular [...]
PowerShell 2 CTP3 – Custom Accelerators, Finally!
Have I mentioned lately how much Oisin Grehan (a.k.a.: x0n) rocks? He discovered that in PowerShell 2 we can now define our own custom type accelerators. A “Type Accelerator” is the thing that lets you write [regex] instead of [System.Text.RegularExpressions.Regex], and they save a lot of typing, but in order to keep the name space [...]
PoshCode Updated for CTP3
I’ve updated the PoshCode script module to support CTP3, and added a -limit parameter to the Get-PoshCode cmdlet so you can specify how many items you want retrieved in the case where there are a lot of matches for your search terms — by default the limit is 25. Improvements to the underlying web search [...]
PowerShell 2 CTP3 – First Impressions
Changes of particular interest Get-Command returns functions By default Get-Command used to return only apps, scripts in your path, and cmdlets… The new CTP3 default invocation includes functions. This is mostly a recognition of the increased power of functions with the arrival of that advanced function features (formerly known as script cmdlets). Advanced Functions Advanced [...]
Still waiting …
EDIT: We found out this evening that it was suppose to ship tomorrow, but isn’t going to anymore because they heard about a (possible) bug and are delaying release to investigate (and fix it). while($true){ $items = Invoke-Http get http://www.microsoft.com/downloads/Results.aspx {freetext="powershell"; nr=50; sortCriteria="date"} | Receive-Http xml "//*[id=‘results’]/table/tr/td/p/a" | where {$_."#text"} [...]