Link to home
Start Free TrialLog in
Avatar of KratosDefense
KratosDefenseFlag for United States of America

asked on

hide multiple exchange contacts

I have a couple hundred mail enabled contacts I need to hide from the GAL. How can I do that?

exchange 2003 .

Thxs
Avatar of Postmaster
Postmaster
Flag of Australia image

Export them from a command prompt with LDIFDE and then modify the settings and import back in.

eg.
ldifde -f c:\contact_check.ldf -r "(&(objectClass=contact)(displayname=*))" -l "displayname,msExchHideFromAddressLists"

Edit the list (in notepad) and make each entry like this.
(remove the displayname, it was just there to help recognise each contact)

dn: CN=.....
changetype: modify
replace: msExchHideFromAddressLists
msExchHideFromAddressLists: TRUE
-

dn: CN=.....
changetype: modify
replace: msExchHideFromAddressLists
msExchHideFromAddressLists: TRUE
-

Note: you must have the record terminator "-" at the end of each record, followed by a blank line.
Inmport with:
ldifde -i -f c:\contact_check.ldf -j c:\

It will write a log to the c-drive.
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KratosDefense

ASKER

Spec01, can I run this PS command for contacts on exch 2003 server? I am also running 2007 -sameorg; however, the contacts are on ex2003.

?
I ran the command and got:

WARNING: The command completed successfully but no settings of
'wfinat.com/Gichner/Contacts/Willie E. Vase' have been modified.


any ideas?
I got it to work. Thxs