Solved

powershell FIND ALL objects in showinaddressbook value

Posted on 2014-07-24
4
1,013 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦

733 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