Solved

powershell FIND ALL objects in showinaddressbook value

Posted on 2014-07-24
4
959 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

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.
How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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