Posts Tagged Powershell

Bulk Mailbox creation by using Powershell

Bulk Mailbox creation by using Powershell

Run following command in Powershell Exchange Management Console

$password = ConvertTo-Securestring "P@ssw0rd1" -asplaintext -force
$i = 1
While ($i -le 10)
{
New-Mailbox -Password $password -Name "User$i" -UserPrincipalName user$1@contoso1.com -OrganizationalUnit "contoso1.com/Users" -Database MDB01
$i = $i + 1
}

VN:F [1.9.18_1163]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.18_1163]
Rating: 0 (from 0 votes)
Total views: 5,627 views

, ,

No Comments