Where to go for PowerShell help…
Here it is. According to my observations, this is the list of places where I recommend you seek help for PowerShell related quandaries, in order of the speed of response. The first two are practically a tie, but I have put them in this order because the first is just a much better place to [...]
A WPF Countdown Timer in PowerShell 2.0
Well, it’s been awhile since I posted anything, and this causes me angst. I’ve been spending all of my time lately on PoshCode.org — not writing content, but working on a new Asp.Net MVC-based back-end (on codeplex) — but in the meantime, this month PoshCode.org finally passed this site’s raw pageview count, and it made [...]
Using Script Functions in the PowerShell Pipeline ( Take Two )
One of the consistent questions about PowerShell is: what’s the best way to write a script or a function to process pipeline objects and be able to take it’s parameters as a normal function? Of scripts and functions The first thing to know is that in PowerShell, there’s really no difference between a script (just [...]
PowerBoots: The tutorial walkthrough
Updated to PowerBoots 0.1 An introduction to PowerBoots Please excuse me if I start by just copying the basic ideas of the Shoes Tutorial, but I figured that since PowerBoots is inspired by Shoes, that was as good a place as any to start. PowerBoots (or just “Boots”) is a PowerShell 2.0 module with functions [...]
PowerShell April Fools Pranks
Harmless 1..100|%{"`a"} Awesome, and mostly harmless (2.0 only) $SWA = Add-Type -M ‘ [DllImport("user32",EntryPoint="ShowWindowAsync")] public static extern bool S(IntPtr h, int i);’ -name SWA -pass ps | ?{ $pid -eq $_.Id } | % { $SWA::S($_.MainWindowHandle,0) } while ($true) { $handles = ps | %{ if([int]$_.MainWindowHandle){$_.MainWindowHandle} } $handles | %{ $SWA::S($_,0) } # [...]