Manage pipeline in PowerGUI actions

The second new Actions option which I would like to highlight in PowerGUI 1.8 (again, this is relatively advanced stuff for PowerPack authors) is the ability to select whether your action needs the objects from the PowerGUI grid pipelined into it:


Basically, you:

  • Choose Action requires object selection when you need to manipulate the objects somehow. For example, you have a node which emits AD users (which means this is probably just a Get-QADUser cmdlet), and you create an action to enable selected accounts. You create an action, select Enable-QADUser – and you don’t need anything else. PowerGUI will automatically pipe selected objects from the grid into Enable-QADUser.
  • Choose Action doesn’t require object selection when your action does not care about the objects in the grid. For example, you want to create a New action which would create a new AD account. You add the action, choose New-QADUser as the cmdlet, and pick this setting to indicate that you don’t need any pipeline into the action.

Hope that helps!

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

My Recent Tweets


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

June 2009

%d bloggers like this: