Link to home
Start Free TrialLog in
Avatar of AhmedAliShaik
AhmedAliShaikFlag for India

asked on

Pull the legacyexchangeDN & showinaddressbook attribute of all contacts in a OU.

As per our requirement we need to Pull the legacyexchangeDN & showinaddressbook attribute of all contacts in a OU.

Abd.com->test->contacts

In the contacts OU i have 10k contacts. I need to pull the report of all users

firstname lastname legacyExchangeDn showInAddressBook

Can anyone share me powershell command for the same.
ASKER CERTIFIED SOLUTION
Avatar of suriyaehnop
suriyaehnop
Flag of Malaysia 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
SOLUTION
Avatar of Jamie McKillop
Jamie McKillop
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
JJ,

May I know what is meaning for:

$Report
$ReportObj=""
what is different with $ReportObj=''
$ReportObj is an object created to hold all the values required for each contact. This gets reused for each contact so the $Report array is created to compile all the $ReportObj.

JJ
Avatar of AhmedAliShaik

ASKER

Both the scripts are working perfect.

Thank you Guys.
Thank you Dear