Episode 51 - Doug Finke

A Podcast about Windows PowerShell.

Listen:

In This Episode

Today on the PowerScripting Podcast we interview Doug Finke, software developer and blogger. Plus our usual news, resources, and tips.

News

What can you really do with PowerShell?  With Admin Script Editor the question becomes what can't you do with PowerShell?  Besides all the advanced code generating tools this is the only tool offering a true PowerShell Forms Designer.  To illustrate what can be done the guys at iTripoli created a full-featured MP3/Podcast player written entirely in PowerShell and delivered as a single script.  Check it out at adminscripteditor.com/player.

Interview

This segment is brought to you by Idera:

Want to make Windows PowerShell easier than ever to learn and master? Checkout Idera's PowerShellPlus Professional Edition which is now available for download! The new version has vastly improved code completion and a slick interactive Learning Center. Go to www.idera.com/PodcastPeople to get your copy today!

Doug has been doing software development for more than 25 years. He started on the Mainframe as a Basic Assembly Language developer. The first scripting languages he encountered were REXX and CLIST. He saw how productive these approaches were and sought them out in each new environment he worked with. He has played with Lua, Tcl/tk, Ruby, Python, Groovy and PowerShell since it was called Monad.

Doug currently works at Lab49 a technology consulting firm that builds advanced solutions for the financial services industry in NY and London.

He has written articles on PowerShell appearing in Dr. Dobb's Journal. You can catch up with Doug at his blog at dougfinke.com/blog.


  • glnsize : ## What feature of V2 are you the most excited about?
  • steve-PSB : ##Do you know why NetMap does not seem to be available on Codeplex now?
  • JeffHicks : ##are there cmdlets for any of this stuff or do I have to code with .NET classes?
  • glnsize : ##  Are the IT shops at your customers familiar with powershell?  Or are you having to sell powershell from the ground up.
  • GrantSteinfeld : ##Dougs showed us how M will be really helpful in creating event driven system, Doug could maybe speak about that?

Resources

When it comes to scripting, you’re a warrior. But mighty warriors need mighty tools!For awesome PowerShell scripting, nothing matches the might of Quest’s PowerGUI. Versatile and easy to use, PowerGUI helps you build commanding scripts that leverage PowerShell’s strength across the enterprise. Now, ruling your domain is easier than ever.

Is your scripting might equal to the challenge? Put the power in your hands – download PowerGUI today.

- The joy of hashtables

Gotcha

A friend of Hal's noticed that the output from these three commands were all different:

  1. repladmin /? # looks as expected
  2. $a = repladmin /? # has double line-feeds
  3. (New-Object system.Net.Mail.MailMessage).Body = repladmin /? # has no linefeeds!

Jin Truher from Microsoft writes in response:

I believe that this is because the application itself is written with printf statements that look like this:

printf(“zazoorrn”);

(note the multiple use of “r”) which confuse PowerShell a bunch - other applications do this too (ipconfig, for one)

He goes further to say that he found this out by using a tool from MS Services for Unix which was funny.  🙂

You can work around issues like this by using the string.split() method.

Mailbox

This is from listener Dale:

I just wanted to let you know that I have found another option that looks a lot more approachable as an object store via Powershell.  It's a database VERY similar to DB4O with Dual Licensing almost the same as well.  It's called "Perst", and it is at:

http://www.mcobject.com/perst

I've been playing with it this afternoon, and it seems to be MUCH more accessible than DB4O via PowerShell.

About the Author

Jonathan Walz

Since March 2007, Jonathan Walz has been the co-host and technical brains for the PowerScripting Podcast. Conceived as a radio show for the PowerShell community, the podcast is the longest-lived PowerShell show in existence, and has featured dozens of weekly guests.