Avatar of cawasaki
cawasaki
 asked on

enable mailbox for all users on specifica OU

hELLO,

i need a command to give mailbox for all existing AD account on specifica OU.

the OU have sub OU and i need mailbox for all OU and sub OU.

ad 2008 r2 and exchange 2013.

thanks for help
PowershellActive DirectoryExchange

Avatar of undefined
Last Comment
Will Szymkowski

8/22/2022 - Mon
Simon Butler (Sembee)

Get-User -OrganizationalUnit "OU Name" | Enable-Mailbox

You will need to do the sub OU separately.

Simon.
cawasaki

ASKER
Hello

Ok i test, ou name must bee in what form?
Thanks
Simon Butler (Sembee)

It should just be name\name\name etc
Nothing special.

Simon.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
cawasaki

ASKER
hello

i have this error for all user:

This task does not support recipients of this type. The specified recipient domain/Users/User Name is of type UserMailbox. Please make sure that this recipient matches the required recipient type for this task.
Simon Butler (Sembee)

That would suggest that the user accounts are already mail enabled.
ASKER CERTIFIED SOLUTION
Will Szymkowski

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.