Generate multiple dummy exchange mailbox with size of 1TB+ for testing

If you want to create multiple dummy mailbox to check exchange performance or for some test then below is powershell code to do so with simple steps.
1> create mailboxes
2> add the new mailbox user to DL
3> Change required value (marked in yellow) and run the powershell script
One of our customer requested to create multiple dummy mailbox with 1TB+ size to perform some test, To fulfill the request we created one distribution group bulkmail and added all newly created users in the DL, Also we used Send-MailMessage function to send bulk mail with attachments ( around 19MB) to all the users in DL.
$upasswd = ConvertTo-SecureString “Abcd1111″ -AsPlainText -Force
$uname =“domuser1”
$creds = New-Object System.Management.Automation.PSCredential($uname,$upasswd)
$rand = Get-Random -Maximum 999999
Get-DistributionGroupMember bulkmail |foreach {write-host $_.PrimarySmtpAddress ; $rand = Get-Random -Maximum 999999 ; Send-MailMessage -To $_.PrimarySmtpAddress -From [email protected] -Credential $creds -SmtpServer smtp.test.com -Subject “journal- $rand” -Attachments “C:shareExchangeSetupLogs.zip“}
Note – please change input values (marked in yellow) as per your requirements.
(Visited 2 times, 1 visits today)