Turning the dial to 11 with Custom TypeConverters

If you are the sort of bloke that likes to turn the dial to 11, you should check out Abhishek’s recent blog entry on Custom TypeConverters: http://abhishek225.spaces.live.com/Blog/cns!13469C7B7CE6E911!191.entry Much of the power of Windows PowerShell comes from the type coercion capabilities of our ObjectFlow engine.  This is what allows PowerShell to eliminate tons of low-class, impedance-mismatch programming minutia… Read more

Get-Process Piped to Dir

Did you know that you can pipe the output of Get-Process into dir?  Don’t believe it?  Let me prove it: PS> Get-Process wi*Handles  NPM(K)    PM(K)      WS(K) VM(M)   CPU(s)     Id ProcessName——-  ——    —–      —– —–   ——     — ———–     95       4     1080       2892    32     0.30    536 wininit    126       3     1848       4612    41     1.11    640 winlogon    676      22   … Read more

BaseName for FileInfo objects

<Edited to add categories>In our active, responsive, and useful newsgroup Microsoft.Public.Windows.PowerShell (SELL SELL SELL 🙂 ),  MVP Alex Angelopoulos recented posted the following: Although file extension changing is a common technique in administrative tasks, the System.IO.FileInfo class does not provide a direct Basename property and neither does PowerShell.This is useful enough that I believe it should… Read more

Leveraging Windows PowerShell Type Extensions to get documentation

After just a little use of Windows PowerShell, you quickly learn that you need to pipe objects in the GET-MEMBER utility to understand the capabilities of that object.  Get-Member reflects against the object and shows you all of its methods and properties (more as well but that will be a different blog).  Get-Member is getting… Read more

Base64 Encode/Decode a string

Today I came across http://scripts.readify.net/  . This sight is focused on Monad and MSH and is starting a collection of scripts at: http://scripts.readify.net/Scripts.aspx .  You should visit their site and let them know what type of scripts would be useful to you.  I particularly liked their entry on how to Base64 encode a file.  This is… Read more