PowerShell Team

Automating the world one-liner at a time…

Scaling and Queuing PowerShell Background Jobs

A couple of months ago I had asked the PowerShell MVPs for suggestions on blog topics. Karl Prosser, one of our awesome MVPs, brought up the topic of scaling and queuing background jobs. The scenario is familiar: You have a file containing a bunch of input that you want to process and you don’t want to overburden your computer by ...

Save All PowerShell ISE files

PowerShell ISE is a simple tool and in some cases it has the bare essentials. For instance, it does not have an option to save all files. On the flipside, it offers an Object Model from its first version that allows adding features beyond the essentials like this one and many more.  If we had the "Save All" option in the ISE, one ...

A Christmas Tree in WPK

Merry Christmas.  To celebrate the holiday, here’s a quick Christmas tree written in WPK (the WPF PowerShell Kit).  You can get WPK as part of the PowerShellPack (http://code.msdn.microsoft.com/PowerShellPack). Here’s a screenshot: and Here’s the script: It’s only about 30 lines, but this script has tons of Christmas ...

Sending Automated emails with Send-MailMessage, ConvertTo-HTML, and the PowerShellPack’s TaskScheduler module

On October 15th I released a large collection of scripts called the PowerShellPack.  The PowerShellPack has tons of PowerShell V2 scripts that can be used to do all sorts of fun and practical things.  Today, we’ll show how to use a module in the PowerShell Pack to schedule sending a daily automated email with information about the ...

Advanced Debugging in PowerShell

Here is a collection of tips and tricks to debug PowerShell Read UpThere is a 7-part series of “Debugging Monad Scripts” that Jon Newman wrote a few years ago that covers a lot of tips, including error handling, traps, tracing, and covers a lot of V1 stuff. Clean codeThe best route, is to make sure code is clean, and common errors are ...

Adding Custom Cmdlet Help for Providers

A new feature of Windows PowerShell 2.0 lets you write custom cmdlet help for Windows PowerShell providers. This blog explains how to do it. (The topic will also be covered in excruciating detail in MSDN, but we don't want you to wait.)   What's a Provider? A Windows PowerShell provider is a C# program that exposes a data store to Windows...

Debugging PowerShell Script Using the ISE Editor

Hi writers and consumers of buggy scripts.This post explains the basics of the Graphical Debugger in the ISE. There’s a lot of good stuff, with some tips and tricks.The debugger support got the cmdlets and user interface.  The cmdlets include  Enable/Disable/Get/Set/Remove-PsBreakpoint and Get-PsCallStack.The general feel is to ...

Finding a URL For File Transfer Cmdlets

I just posted a blog about our new File Transfer Cmdlets in which I artfully dodged a difficult question:  How do you get the URL to do the file transfer?  Sometimes you are going to have it but other times you’ll go to a website and it can be bloody impossible to find the URL that you need to download.  That was the case with...

Feedback usabilla icon