Home » Exchange Server 2010 » Mailbox » Creating & Removing Mailbox using powershell in Exchange 2010 & 2013

Translate:

Archives

Creating & Removing Mailbox using powershell in Exchange 2010 & 2013

Creating & Removing Mailbox using powershell in Exchange 2010 & 2013

The parameters: Alias, Database, Firstname, and LastName.

# Create a Mailbox with PowerShell

New-Mailbox -UserPrincipalName praveen.eppili@techrid.com -Alias peppi -Name PraveenEppili -OrganizationalUnit Users -Password -Firstname Praveen -LastName Eppili -DisplayName “Praveen Eppili”

Example :

Mailbox1

 

# To verify the result PowerShell cmdlet: Get-Mailbox.

Get-Mailbox -Identity “Praveen Eppili”

# Add A Mailbox To An Existing User In Powershell Exchange 2013

Here we create the mailbox for the user “Praveen” as above but in powershell

Enable-Mailbox -Identity:techrid.local/Users/praveen -Alias:Praveen -Database: Mailbox Datastore

 

# Creating Resource Mailbox:

 

New-Mailbox -UserPrincipalName Praveen.Eppili@techrid.com -Alias Praveen -Name ConfRoomMailbox -Database “Mailbox Database 1” -OrganizationalUnit Users -Room -ResetPasswordOnNextLogon $true

 

# Creating Room Mailbox :

 

New-Mailbox -UserPrincipalName confroom4567@techrid.com -Alias confroom4567 -Name “Conference Room 4567” -Room -EnableRoomMailboxAccount $true -RoomMailboxPassword (ConvertTo-SecureString -String P@ssw0rd -AsPlainText -Force)

 

# Removing Mailbox using Powershell:

Mailbox2

 

 

For More Info : http://technet.microsoft.com/en-us/library/aa997663%28v=exchg.150%29.aspx

 

Praveen Kumar

MCTS | Exchange Server


Leave a comment

Translate »