Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted (edited)

Hi all need some help on a powershell script for exch 2007.

 

I need the script to serach through all mail-enabled accounts where there department is Students and the HiddenFromAddressListsEnabled is false.

 

iv got this so far but not too sure if its right:

 

Get-user -resultsize 15000 | where-object {$_.RecipientType –eq “Usermailbox” -and $_.department –eq “Students” -and $_.HiddenFromAddressListsEnabled -eq $False} | Set-Mailbox -HiddenFromAddressListsEnabled $true

 

Any help would be great.

 

Ezza.

Edited by ezzauk

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...