main logo

How to create user mailboxes using PowerShell in Exchange Server

Open Exchange Management Shell

Click on the “Start” button in the bottom left corner of the screen.
In the search box, type “Exchange Management Shell” and hit enter.

Create a user mailbox in the Exchange Management Shell

Open the Exchange Management Shell using the steps outlined in my previous response.
Type the following command:

New-Mailbox -UserPrincipalName <UPN> -Alias <Alias> -Name "<Display Name>" -OrganizationalUnit "<OU Path>" -Password (ConvertTo-SecureString -String "<Password>" -AsPlainText -Force) -ResetPasswordOnNextLogon $true


Replace <UPN> with the user’s UPN (e.g. john.doe@contoso.com).
Replace <Alias> with the user’s alias (e.g. jdoe).
Replace <Display Name> with the user’s display name (e.g. John Doe).
Replace <OU Path> with the path of the organizational unit where the mailbox should be created (e.g. “contoso.com/Users”).
Replace <Password> with a strong password for the user.
Press Enter to execute the command.
Verify that the mailbox was created successfully by running the following command: Get-Mailbox -Identity <Alias>
Replace <Alias> with the alias that you specified in step 4.
Press Enter to execute the command.
Review the output to confirm that the mailbox was created and is listed.

If you need assistance with Exchange Server-related issues, please don’t hesitate to contact our support team directly. We will be happy to assist you and help you resolve any issues you may be experiencing. Contact us today and let us help you get the most out of your Exchange Server deployment!

Bharath
Bharath
I’m Bharath, a Microsoft 365 and Azure engineer, helping small businesses make the most of Microsoft tools. As a Microsoft certified engineer, I have experience migrating organizations to Microsoft solutions and offer guidance on cloud-based solutions to optimize business operations.
Share
Contents

Related Articles

medhacloud logo
USA:
Medha Cloud Solutions LLC
30 N Gould St Ste R, Sheridan, WY 82801,
Phone: +1 646 775 2855

India:
Medha Cloud Solutions Private Limited
#74, 7th Cross, Krishna Garden InCity Layout. Chikka Kammanahalli, Banneraghatta Road, Bangalore 560083
Phone:+91 93536 44646

E-Mail: sales@medhahosting.com
©Medha Cloud 2024. All rights reserved.