The PowerShell Podcast

Building your career with PowerShell

Episode 1 – Fundamental Cmdlets

A podcast about Windows PowerShell.
In this show I discussed the cmdlets Get-Command, Get-Help and Get-Member.
Here is a great video discussion of these cmdlets by Jeffrey Snover. (updated to a newer version)
I also talked about a great Technet video by Don Jones about the PowerShell Pipeline.
For our first PowerShell moment I talked about $f= dir
The one-liner (full version) is:

Get-Content servers.txt | %{$x = net time $_ ; $x[0];If($x2.contains(“Local”)){$x2}} | Add-Content Servertime.txt

Episode 0 – Episode Zero

I have finally posted my first podcast

I started with Episode Zero because all collections in Powershell start with zero. This show is an introduction to the podcast, PowerShell and to scripting. I gave an overview of the segments that will be featured in upcoming podcasts as well as my reasoning behind them.

You can find the Windows PowerShell homepage at http://microsoft.com/powershell.

PowerShell Help 1.1 can be downloaded from http://www.sapien.com/software/communitytools.

I hope you enjoy my first attempt at podcasting. If the link at the right doesn’t work for you to subscribe you can go directly to http://feeds.feedburner.com/Powerscripting and click one of the links or paste the URL in your podcatching software.

Powershell one-liner to check the time on a bunch of servers for DST

Over the weekend I need to check a bunch of servers (mostly Domain Controllers) to see if the DST (Daylight Savings Time) change occurs correctly.  I decided to see how I could do it in Powershell and this is what I came up with: 
Get-Content servers.txt | %{$x = net time $_; $x[0];If($x[2].contains(“Local”)){$x[2]}} | Add-Content Servertime.txt
This is a line of Powershell code that will open servers.txt (which is just a list of servers) and for each server it will run the “net time” command.  I pass the first line of the output of the “net time” command $x[0] and check to see if the third line contains “Local”.  If it does I pass that line as well ( to see the local time on the servers that are not in my timezone.)  I then send this to Servername.txt
Quick, easy one line of code.  You’ve gotta love Powershell!  Thanks Microsoft

AAArrghhh!!

I had an equipment setback. The USB mixer I bought is going back. It was an Alesis MultiMix USB 8 and I was getting some kind of a ground loop when I tried to use the USB interface and monitor from the mixer. I’m not the only one who has had this problem. I ordered a new mixer today and I should have it early next week.

Podcasting gear is on the way

I’m another step closer today to Episode 1.  I ordered my mixer, mic etc. today.  I should have it in my eager little hands on Friday!

Never Miss an Episode

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