What's New in the PowerShell Cookbook V3?

Or for that matter, “What’s new in PowerShell V3”?

To help those interested in reviewing the juicy new bits of the PowerShell Cookbook, I’ve been able to compile a rough break-down of what’s new, along with the magnitude of the change. Both the V2 and V3 cookbooks were written in the XML-based DocBook format, which has provided mind-blowing power during the editing and creation cycle.

Some notes:

  • Some recipes were moved …
Read more

PowerShell Cookbook v3 Beta Available

With the draft of the Windows PowerShell Cookbook (3rd edition!) complete, we’re running an open beta through O’Reilly’s cutting-edge platform called the Open Feedback Publishing System: http://ofps.oreilly.com/titles/9781449320683/. In this system, we put the entire book online and let you read to your heart’s content.

Not only is the book available online, but you can also influence its future. The Open …

Read more

Bash-like Tab Completion in PowerShell

[Edit 10/2/2015] - PowerShell 5.0 now includes a new and amazing PSReadLine module by default. You can also install it from here: https://github.com/lzybkr/PSReadLine.

When PowerShell first came on the scene, Unix folks were among the first to notice. They’d enjoyed a powerful shell and a vigorous heritage of automation for years – and “when I’m forced to use Windows, PowerShell rocks” was a phrase we heard many …

Read more

Scripts in the PowerShell Cookbook?

The third edition of the PowerShell Cookbook is getting close! We should have an online preview ready for your perusal in the near future – stay tuned for an update.

One “problem” we’re running into is its size. This is where we’d love some feedback.

We could make it thinner and cheaper by not printing the scripts, but instead hosting them online. That would mean, of course, that you can’t just sit back and read …

Read more

'Whilst' keyword in PowerShell

Recently, SMBC Comics made the comment that, “In Britain, they have whilst loops, which do not terminate until the Queen says it’s appropriate.”

If you are a programming language aficionado, you may recognize this keyword chiefly from languages of P-Celtic (especially Common Brythonic) origin.

One thing you may not know is that the PowerShell team has a huge Canadian contingent. There have been many Canadians …

Read more

A Poor Man's Profiler with PowerShell and CDB

Will Steele asked today on Twitter how we did the analysis to come up with this post on the PowerShell blog in 2009. In brief, it’s a blog post that addressed some performance issues in the .NET framework that were causing Get-ChildItem to be slow. How did we know it was the .NET APIs slowing us down?

The answer came from Visual Studio by way of Software Profiling. Surprisingly, there aren’t many resources for this on …

Read more

Sea Foam really works

As a background, I’ve been having a “ghost in the machine” on and off with my motorcycle for a few years. It’ll start idling more roughly, run hotter than usual, give less power than usual, and have these significant non-linear jumps in engine noise / effort at around 7k RPM.

I bought the bike at a shop that has since closed, and for a long time it was under warranty. One time I brought it in, …

Read more

Queueing Theory for the Busy PowerShell Admin

The biggest scripting event of the year is getting close to wrapping up - Scripting Games 2012! There have been a ton of great challenges, a ton of great competitors, and a ton of great commentary.

As one of the guest commentators, I was asked to write a script to monitor uptime on servers in the environment.

To make this as efficient as possible, the solution leveraged WMI jobs to process 32 computers at a time. …

Read more

MakerBot Replicator Rainbow Color Pack Group Buy

If you own a Makerbot Replicator, you might have seen some of the amazing colours they offer: http://store.makerbot.com/plastic/1-75mm-filament.html.

image

Unfortunately, trying to get a full colour palette (13 colours in stock) means having so much plastic you’ll never get through it all. Makerbot tried offering rainbow colour packs before, but they are now no longer for sale. I suggested it again via email, but it …

Read more

How to Download an Entire WordPress Blog

Sometimes, you stumble on a blog that is so chock full of information that you revel in its every word. And then you realize their archive goes back 5 years!

image

I’ve read a bunch of great posts on Nate Lawson’s awesome security blog, and decided that I wanted to read it beginning to end.

If you are the owner of said WordPress blog, the solution is easy – use WordPress’ built-in Export feature. There are even handy …

Read more