Solved

PowerShell Script

Posted on 2011-03-20
3
231 Views
Last Modified: 2012-05-11
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
Comment
Question by:Exchisa
  • 2
3 Comments
 
LVL 4

Expert Comment

by:andy_maskell
ID: 35174909
0
 

Author Comment

by:Exchisa
ID: 35225721
thanks for ur reply :
what if users are already exist in the active directory ?
regards
0
 
LVL 4

Accepted Solution

by:
andy_maskell earned 500 total points
ID: 35225790
Try this:

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

Featured Post

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question