More powershell uptime stuff.
So uptime seems to be a big thing to me at the moment- I've previously posted about a simple way to capture uptime (similar to the one here: http://exchangeshare.wordpress.com/2008/04/07/powershell-uptime-of-multiple-servers/) but what nobody likes days and minutes - everyone LOVES percentages. Good news, then that after a bit of searching I found this http://technet.microsoft.com/en-us/magazine/2008.12.heyscriptingguy.aspx?pr=PuzzleAnswer - a great step by step guide to understanding uptime in terms of downtime in terms of Powershell 2 (boo for now powershell 1 though :-( ). If you're just after the meat of the script, there's actually a slightly improved one here: http://gallery.technet.microsoft.com/scriptcenter/True-Uptime-Calculator-5903cf22 which I ended up using- and I'm thinking of building on this to do an array of servers via a GUI shortly - my first powershell GUI app- I'll post it when it's ready!!