We help IT Professionals succeed at work.
Get Started

Get-Exchange mailbox users

Last Modified: 2012-08-15
As per our client requirement we need to generate a report of all unity servers users who are enabled/not enabled in GAL in the below format (hide from Addresslist)

displayName  sAMAccountName  email  msExchHideFromAddressLists  Description server

I have tried a script which gives me the users who are not enabled from GAL, but getting output in a different format.

$serverlist = "C:\unity.txt"

foreach ($server in Get-Content $serverlist)

Get-Mailbox -ResultSize unlimited |Where{($_.servername -eq "$server") -and ($_.HiddenFromAddressListsEnabled -eq $false)}


the format i am getting is
  Name      Alias      ServerName

Can u help me in finetuning this script to get the required format
Watch Question
Solutions Architect, Project Lead
Top Expert 2013
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE