# encoding: ascii # api: powershell # title: Select-ViaGUI # description: An interactive graphical filter for pipeline objects for ShowUI # version: 0.1 # type: function # author: Joel Bennett # license: CC0 # function: Select-ViaUI # x-poshcode-id: 2820 # x-archived: 2015-12-28T18:32:49 # x-published: 2011-07-24T21:43:00 # # As an improvement over the currently shipped one, this one now has columns … in 1.2 we’ll ship one with sortable columns ;-) # function Select-ViaUI { #.Synopsis # Select objects through a visual interface #.Description # Uses a graphical interface to select (and pass-through) pipeline objects # Idea from Lee Holmes (http://www.leeholmes.com/blog) #.Example # Get-ChildItem | Select-ViaUI -show | Remove-Item -WhatIf [OutputType([Windows.Controls.Grid])] [CmdletBinding(DefaultParameterSetName="DefaultView")] param( # Specifies the object properties that appear in the display and the order in which they appear. Type one or more property names (separated by commas), or use a hash table to display a calculated property. Wildcards are permitted. # # If you omit this parameter, the properties that appear in the display depend on the object being displayed. The parameter name ("Property") is optional. You cannot use the Property and View parameters in the same command. # # The value of the Property parameter can be a new calculated property. To create a calculated, property, use a hashtable. Valid keys are: # -- Name (or Label) # -- Expression or