• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 819
  • Last Modified:

Is there an EMS command to hide users from the Global Address List?

Hi

Having created about 1400 student mailboxes for a school, we need to hide them from the GAL, to prevent students from easily bulk mailing the school.  Is there an EMS command that will allow me to do this, rather then go to each mailbox properties and clicking Hide from Exchange Address Lists?

Thanks
0
Glen_TTL
Asked:
Glen_TTL
  • 5
  • 3
1 Solution
 
Alan HardistyCo-OwnerCommented:
Not tried this personally, but the following article looks very promising:

http://exchangeserverpro.com/how-to-remove-mail-users-from-the-global-address-list
0
 
DaeltCommented:
I guess that with so many user, they might have their own OU so i suggest u hide them by OU:

Get-Mailbox -OrganizationalUnit "Students" | Set-Mailbox -HiddenFromAddressListsEnabled $true
0
 
Alan HardistyCo-OwnerCommented:
If you have the users organised by OU's, then the following should work:

Get-Mailbox -OrganizationalUnit "OU Name" | Set-Mailbox -HiddenFromAddressListsEnabled $true
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell┬« is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
Alan HardistyCo-OwnerCommented:
Darn - it's all in the timing :0
0
 
DaeltCommented:
Darn - it's all in the timing :0

Kinda yes lol, i wont care if he shares the points between us ;)

@Glen : U'd bette hide them by OU, will be easier manage, and no trouble while adding new students accounts.
0
 
Alan HardistyCo-OwnerCommented:
1st correct answer is the one which should get the points - split is fine, but you have a few less than me and I don't need them ;)

What's important is that Glen gets an answer that works for him.
0
 
DaeltCommented:
What's important is that Glen gets an answer that works for him.

i agree.
0
 
Glen_TTLAuthor Commented:
This command worked a treat!!!!  Thanksto all once again for a prompt response.
0
 
Alan HardistyCo-OwnerCommented:
Good call on the points too.  Well done Daelt.  Until next time :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now