The PowerShell Podcast

Building your career with PowerShell

Where did the time go?

First, I go on vacation (this is Hal typing). Then, Jonathan has a big project at work which takes up our next available studio slot. Then, my weekend just totally filled up end to end. I’m afraid we still haven’t gotten Episode 23 out yet, folks! But fear not, this will not become a habit. We were really good about the two-week rotation, we’ll get back to it very soon.
In the meantime, let me tell you what we’re working on in upcoming episodes:

Vacation delay

Hi all. Just wanted to let you know that I was out of town on vacation last week, so Jonathan and I were unable to record the show at our usual time. We’re getting together to record again this Thursday with an estimated air date of April 20th.
To make it up for you, we’ll try to do several blog posts this week with pointers to cool PowerShell stuff. I’ll start it off with this one from a very persistent sysadmin Ken who blogged his techniques for displaying some sweet PowerGadgets-powered gauges to monitor the CPU and memory utilization on VMware ESX servers. I say persistent because the solution did require a lot of work to get just right, and he goes into detail about those challenges so it makes a great tutorial for those new to PowerGadgets and the VMware VI Toolkit.

Episode 22 – The One About Brandon

A Podcast about Windows PowerShell.
Listen:

In This Episode

Today we’ll bring you the second half of our interview with Jeffrey Snover. We think this part is even better than the first half. We’ve also got some news, resources, and a bunch of PowerShell tips for you.

News

The News today is sponsored by SDM Software:

“SDM Software provides innovative solutions that combine PowerShell and Group Policy to help reduce the complexity of managing your Windows systems. Their unique GPExpert Scripting Toolkit for PowerShell, provides the means to automate the management of your Group Policy Objects. To get more information about these products and download trial copies, visit sdmsoftware.com/powerscripting.php.”

Get-Directory Function

In the olden days (i.e. when I used CMD.EXE), I often did “dir *.” to quickly get a list of the directories in the current path. PowerShell doesn’t work this way (which is good because it would be unexpected), so I had to make a replacement.

function Get-Directory { ls $Args | ? { $_.PSIsContainer } } The alias which makes most sense to me for this function is “lsd”. What, that acronym is already in use? 🙂

Episode 21 – One-half of Jeffrey Snover

A Podcast about Windows PowerShell.
Listen:

In This Episode

This week, our Intrepid Heroes talk about News in the PowerShell world, bring you fresh Resources from the wild Internet, and share their experiences in the Tips section, with you, the Listener. Oh–and we also interview JEFFREY SNOVER! In case you don’t know who he is, he’s basically like the Thomas Edison of scripting.

Interview with Jeffrey Snover

And now a word from our sponsor:

Episode 21 coming soon.

I just wanted to let you know that the new podcast should be posted by Tuesday morning. We had a great interview with Jeffery Snover that you don’t want to miss!

One-Liner: Countdown Timer in PowerShell

Here’s a quick one for ya. Perfect kitchen timer. Who doesn’t have a laptop with PowerShell on it in their kitchen? 🙂

start-sleep (60*9); write-host ("a"*4)</pre> Start-Sleep works in seconds, so you see where I've done some quick math to get nine minutes. Not sure if the ()'s were required, but they don't hurt. I didn't know the precedence of parameter parsing versus multiplication off the top of my head. Next is Write-Host with some more multiplication. This one uses "a" which is the special character

One-liner: Pop up a message box

You could paste this into a scheduled task or something if you want an annoying reminder to pop up on your screen.  :)  Now if only schtasks.exe was as easy to use as PowerShell…

PowerShell -NoProfile -NonInteractive -Command [reflection.assembly]::loadwithpartialname('system.windows.forms'); [system.Windows.Forms.MessageBox]::show('reminder: buy milk')

Episode 20 – Jeffrey Snover is coming

A Podcast about Windows PowerShell.
Listen:

Please visit our sponsors!

  [ShellTools Software](http://powershell.com) - makers of PowerShell Plus and PowerShell Analyzer
  [SDM Software ](http://sdmsoftware.com/powerscripting.php)- "Windows Group Policy Management Simplified." Featuring the GPExpert Scripting toolkit for PowerShell

News

  • Don Jones gives us a peek at his PowerShell column in the March Technet Magazine:
    • “March is Progress Reporting - a definitive look at when, why, and how to use Write-Progress to produce
      scripts that run for a long time, but don’t look hung.”
  • Sapien will be announcing their PowerShell training plans very soon.  Watch their blog{#xlqg}.  They are also seeking input on a possible PowerShell developer class, you can fill out the survey here{#iu8z}.
  • Jeffery Snover will be joining us on a future podcast so send in your questions

Resources

Never Miss an Episode

Subscribe to get the latest episodes delivered straight to your favorite podcast app.