Solved

powershell FIND ALL objects in showinaddressbook value

Posted on 2014-07-24
4
917 Views
Last Modified: 2014-08-21
I am doing AD /Exchange clean up and was wondering if anyone have a way of finding objects that have a certain value in the showinaddressbook value. It would be difficult to do this by manually going in with ADSIEDIT. Is there a powershell command perhaps that can find different names in the showinaddressbook value. For example

CN=AG LA BC DDE
0
Comment
Question by:techdrive
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:Subsun
ID: 40217323
For exchange 2010 and above you can try..
Import-Module Activedirectory
Get-ADObject -Filter * -Properties showInAddressBook | ?{$_.showInAddressBook -match "CN=AG LA BC DDE"}

Open in new window

0
 

Author Comment

by:techdrive
ID: 40220753
thanks works like a charm
0
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 40251369
Thanks!.. Please close the question.. :-)
0
 

Author Closing Comment

by:techdrive
ID: 40276707
thanks
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now