Archive for April 12th, 2007

PowerGUI and PowerGadgets

PowerShell and PowerGUI are totally extensible and benefit from the rich PowerShell ecosystem growing around the technologies. Let’s have a look at how PowerGadgets can make PowerGUI UI even better.

1. I already had PowerShell and PowerGUI installed, and the only component I had missing was PowerGadgets so I went to and downloaded the trial version.

2. Installation was pretty straight-forward (although my attenpt to install in my Exchange 2007 lab failed because the setup required internet connection – I assume to verify the license key.)

3. Started PowerGUI and went to File/Snapins – magically PowerGadgets were there in the list:

PowerGadgets snapin autodiscovered by PowerGUI

4. I selected the snapin and restarted PowerGUI.

Now that PowerGadgets are added to PowerGUI I decided to check whether I could use them in my actions.

5. I clicked the PowerGUI/Local System/Processes node and clicked the Actions button on the toolbar to open the right-hand Actions pane:

Processes list in PowerGUI

6. In the right-hand pane, in the Actions: Common group (I picked common actions so I could use the gadgets for everything – not just for processes), clicked Add new item/Action.

7. In the New Actions dialog box I typed in the name of the new action (Chart) and searched for the cmdlet by just typing chart in the Search box – it worked! and found the command I needed.

Add chart action

8. I double-clicked the Out-Chart entry to select it and clicked OK. The new action got added to the pane.

9. That was actually it! I clicked the newly added Chart action, clicked OK to accept all default parameters and got the chart:

PowerGadget chart in PowerGUI

That was it! No command-line, no tweeking, no complex setup or configuration – everything just worked.

10. I decided to push harder and see how well will PowerGadgets work with my changes in PowerGUI. I closed the chart, right-clicked the grid header and only left Handles and ProcessName selected:

Select process properties

11. Then I draged the ProcessName to be the first column and clicked the Handels header to sort by the column.

Sorted process list

12. Clicked the Chart action again and magic happened I got exactly what I expected – a chart with only Handles sorted by them in the same order as in PowerGUI:

Sorted PowerGadgets chart from PowerGUI

I still feel like what I saw was a kind of magic. I just installed two products from different teams and they simply worked with one another providing great UI experience on top of PowerShell.

Great job by PowerGadgets, PowerGUI and PowerShell teams.



The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

April 2007

%d bloggers like this: