troubleshooting Question

Exporting AD User information from Distribution List

Avatar of Scott Holmes
Scott Holmes asked on
Exchange
8 Comments1 Solution103 ViewsLast Modified:
I'm trying to export out of my exchange server a list of users associated with a distribution list.  In the export I need to include AD information like the user EmployeeNumber.  I'm able to get the user list using the following commands

Get-DistributionGroup -identity "@all Corporate Employees" | get-distributiongroupmember | select-object @{label=”User”;expression={$_.DisplayName}},@{label=”Email Address”;expression={$_.PrimarySmtpAddress}},@{label=”Telephone Number”;expression={$_.phone}}, | Export-CSV C:\DistGroupData.csv

I need to pull AD information about the user so I can get the user EmployeeNumber.

Thank You
Scott Holmes
ASKER CERTIFIED SOLUTION
Saif Shaikh
Server engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros