title: Is there a way to run advanced AD searched via CMD?
body: <p>Long story short, I frequently have to look up users in Active Directory by their phone number. I usually do an advanced search as follows:</p>
  <p>Field: User &gt; IP Phone Number</p>
  <p>Condition: Ends With</p>
  <p>Value (Last 4 digits of phone number)</p>
  <p>Is there a way to do this same search via CMD? My plan is to set up a batch script where you just have to put in the last 4 digits and it will show the results - which I will have no problem creating - just not sure if it's possible to do this search through CMD.</p>