Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

PowerShell Script

Hello All .

I need to create a bulk of mailboxs using script .
all users are already created in AD .
can anyone show me that script ? we are using exch 2010 sp1 .
thanks
0
Exchisa
Asked:
Exchisa
  • 2
1 Solution
 
andy_maskellCommented:
0
 
ExchisaAuthor Commented:
thanks for ur reply :
what if users are already exist in the active directory ?
regards
0
 
andy_maskellCommented:
Try this:

get-user | where-object{$_.RecipientType –eq "User"} | Enable-Mailbox –Database "servername\Mailbox Database" | get-mailbox | select name,windowsemailaddress,database
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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