$password = Read-Host „Enter password“ -AsSecureString
New-Mailbox -Name ‚test_user2‘ -Alias ‚test_user2‘ -OrganizationalUnit ‚FQDNdomain/OU/OU‘ -UserPrincipalName ‚test_user2@domain‘ -SamAccountName ‚test_user2‘ -FirstName ‚test_user2‘ -Initials “ -LastName “ -Password $password -ResetPasswordOnNextLogon $false -Database ‚NAMEOFEXCHANGESERVER\NAMEOFMAILBOXGROUP\MAILBOXDATABASE‘
create distribution group over powershell
new-DistributionGroup -Name ‚test_distribution_group1‘ -Type ‚Distribution‘ -OrganizationalUnit ‚FQDNDOMAIN/OU/OU/OU‘ -SamAccountName ‚test_distribution_group1‘ -Alias ‚test_distribution_group1‘