Powershell Script Help to create Mailboxes in Exchange 2010

Status
Not open for further replies.
S

ScottECC

I have been using the script below to bulk enable accounts for mail in Exchange 2007. The script would automatically use the samaccountname as the exchange alias. Now with Exchagne 2010, you must specify the alias when creating an account or else it will default to the UPN which is what I don't want. How can I pass the -alias parameter to the enable-mailbox using the samaccountname of the user?
get-user -OrganizationalUnit " OU=Users,OU=Staff,DC=mydomain,DC=com" -ResultSize 10000 -Filter {Recipienttype -eq " User" } | Enable-Mailbox -Database " StaffStore"
 
T

Thiyagu14

Hi,

I have setup a provisioning script for bulk mailbox creation on Exchange 2010.

Please check it out.


. This posting is provided " AS IS" with no warranties, and confers no rights.
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
Diane Poremsky Use PowerShell to log into Office 365 Exchange New Slipstick.com Articles 0
marcadamcarter Interrogate Outlook GAL with PowerShell Using Outlook 0
R Exchange - Locating a user that has log files but is not found using powershell Exchange Server Administration 1
Britonius Exchange Powershell to Remove Reviewer access from all Folders in a mailbox? Using Outlook 3
P Could the powershell Version be wrong? Exchange Server Administration 1
I Exchange 2010 Powershell Exchange Server Administration 1
T Problems opening the EMS and EMC - WinRM, Kerberos, Powershell Exchange Server Administration 4
P Error when trying to open EMC and Powershell Exchange Server Administration 4
B Create Exchange PowerShell Virtual Directpory Exchange Server Administration 3
à owa and powershell take times on exchange 2010 Exchange Server Administration 8
M PowerShell Get-Mailbox truncates fields in the results Exchange Server Administration 3
S EMC, EMS & Powershell issues. Cannot manage Exchange 2010 after install Exchange Server Administration 4
G Moving messages within mailbox via PowerShell Exchange Server Administration 1
N Failed Exchange 2010 SP1 Installation PowerShell "unauthorized operation" Exchange Server Administration 2
T You must Provide a value for this property on powershell cmdlet Exchange Server Administration 3
C ClamAgent free antivirus for exchange help with JS in Powershell 2.0 Exchange Server Administration 1
S Determine Managed Folder Policy for Mailbox in Powershell Exchange 2010 SP1 Exchange Server Administration 4
W PowerShell Help in Exchange 2010 Exchange Server Administration 14
S Applying Managed Folder Policy using Powershell Exchange Server Administration 2
F Powershell help required Exchange Server Administration 4
R Exchange Powershell getting the forward email address for mailboxes Exchange Server Administration 2
J Powershell Query Exchange Server Administration 8
I Can't open Management Shell or Console - Reached limit of Powershell Concurrent Connections? Exchange Server Administration 3
R Exchange 2010 Sp1 install -> broken OWA -> broken powershell -> broken exchange managemen Exchange Server Administration 2
T How do I check litigationholdenabled flag via powershell Exchange Server Administration 3
E Remote PowerShell Error: Value cannot be null Exchange Server Administration 7
E Powershell 2.0 CTP3 On Exchange 2010 Exchange Server Administration 4
S Exchange 2010 Console and exchange powershell error Exchange Server Administration 8
M Powershell: condition not working Exchange Server Administration 13
M PowerShell Virtual Directory Error Exchange Server Administration 3
S Exchnage 2007 Powershell comandlet Exchange Server Administration 4
J Re: Exchange 2010 SP1 mailbox role install failure PowerShell virtual directory Exchange Server Administration 3
J Exchange 2010 SP1 mailbox role install failure PowerShell virtual directory Exchange Server Administration 5
G Open another user's Inbox/Mailbox via PowerShell (Outlook 2010 & Exchange 2010 SP1) Exchange Server Administration 6
S Exchange 2010 Management Powershell missing after installing SP1 Unable to load Exchange Server exshell.psc1 Exchange Server Administration 1
A What Powershell command must be used to set mAPIRecipient? Exchange Server Administration 3
B Exchange 2010 Management Powershell missing after installing SP1 Exchange Server Administration 4
T Unable to install SP1: "virtual directory 'PowerShell' already exists" Exchange Server Administration 8
M Powershell: Output as input & export Exchange Server Administration 8
M Powershell: Combine and Out-file Exchange Server Administration 2
D How to add calendar enries to all users in organization using powershell and EWS. Exchange Server Administration 4
J Add secondary email address using Exchange 2010 powershell Exchange Server Administration 6
D.Moore VBA script fail after Office 365 update Using Outlook 8
M Outlook 2013 Script Assistance - Save Opened Link with Subject Added Outlook VBA and Custom Forms 1
F Script for zip file attachment Outlook VBA and Custom Forms 1
S Change VBA script to send HTML email instead of text Outlook VBA and Custom Forms 3
Y Outlook 2013 Run A Script Outlook VBA and Custom Forms 4
Z Script to set account? Using Outlook 0
dweller Outlook 2010 Rule Ignores VBA Script Outlook VBA and Custom Forms 2
N VBA Script to Open highlighted e-mail and Edit Message Outlook VBA and Custom Forms 5
Similar threads


















































Top