Monday 1 July 2013

How to Create a New Mailbox in Exchange 2013 using Shell Command

Below the shell command which can be used to create a Mailbox in Exchange Server 2010 and Exchange Server 2013
$password = Read-Host "Enter password" -AsSecureString
New-Mailbox -UserPrincipalName Name@DomainName.in -Alias AliasName -Database "Database Name" -Name 'Name' -OrganizationalUnit Users -Password $password -FirstName FirstName -LastName Last Name -DisplayName "Display Name" -ResetPasswordOnNextLogon $true

No comments:

Post a Comment