Welcome to Powergui.org - an open source community for Windows Powershell

PowerGUI.org PowerGUI.org and blogs

Forums » PowerGUI User Discussions

Thread: Is "or" filtering possible with the built in filter?

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: Dec 8, 2009 8:07 AM by: brian.hodson@md...
brian.hodson@mdch.com

Posts: 7
Registered: 10/14/08
Is "or" filtering possible with the built in filter?
Posted: Nov 30, 2009 1:05 PM
 
  Click to reply to this thread Reply

I'm trying build a tool for our communications department for when they want to email a very specific set of employees.  I'm using a very basic script to pull back all the users from AD and was hoping to use the built in filtering so they can get exactly who they need.  For example, get a list of employees where department is "Tax" or "Finance".  Can the built in filter handle OR statements?


Darin Pendergraft [Quest]


Posts: 663
Registered: 6/30/06
Re: Is "or" filtering possible with the built in filter?
Posted: Dec 7, 2009 1:56 PM   in response to: brian.hodson@md...
 
  Click to reply to this thread Reply

hello Brian,

The short answer is no - and we have an enhancement request in the system for more complex filters.

The slightly longer answer is that you can use an regular expression operator (see graphic) to do what you want.  Then save that filter as a new Script Node in the Navigation tree.






Darin Pendergraft [Quest]


Posts: 663
Registered: 6/30/06
Re: Is "or" filtering possible with the built in filter?
Posted: Dec 7, 2009 2:47 PM   in response to: brian.hodson@md...
 
  Click to reply to this thread Reply

Hey Brian,

can you send me an email with your contact info? I have been thinking a lot about PowerPack development and i'd like to chat with you.

darin(dot)pendergraft(at)quest(dot)com.


brian.hodson@mdch.com

Posts: 7
Registered: 10/14/08
Re: Is "or" filtering possible with the built in filter?
Posted: Dec 8, 2009 8:07 AM   in response to: Darin Pendergra...
 
  Click to reply to this thread Reply

Sure Darin,

Brian Hodson
Sr. IT Engineer
MDC Holdings Inc
720-977-3783


Legend
MVP: 2501 + pts
Guru: 2001 - 2500 pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums