Virtualization, Cloud, Infrastructure and all that stuff in-between

My ramblings on the stuff that holds it all together

POSH1Liner – Enable Exchange mailboxes for all users in a specific OU

Inside the Exchange Management Shell..

Get-User -OrganizationalUnit "NAME_OF_OU" | Enable-Mailbox

Note: can just be the name of the OU, doesn’t need to be the full DN

e.g.

 

Get-User -OrganizationalUnit "NZ" | Enable-Mailbox

will just enable all the users in the NZ OU (which in my case is a sub-OU of ‘demo users’

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: