Поделиться через


Powshell GUI for selecting objects in a pipeline ("Select-GraphiphicalFilteredObject.ps1")

This is an enhanced version of a script from Lee Holmes' book Windows PowerShell Cookbook (O'Reilly).  The original script takes a pipeline & presents a GUI that lets you select which elements to pass on to the next step in the pipeline.  That's unchanged, but my enhanced script does a little more:

  • Added 'All' and 'None' buttons
  • A little space around the checked list box
  • Option to set the title to something domain-specific
  • Turn off CheckOnClick behavior because I think it's annoying but leave it as an option, if you like that sort of thing.

EDIT: Fix the attachment.

Select-GraphicalFilteredObject.ps1

Comments