Special Offer: Buy 1 course, get 2nd free! Buy the 'Managing Office 365 Identities & Requirements' course w/ Accelerated TestPrep, and automatically receive the 'Enabling Office 365 Services' course FREE!
$distgroup = Read-Host "Enter new Distribution Group name" $orgunit = Read-Host "Enter OU" $emailaddress = Read-Host "Enter Email Address for the Group" $groupmembers = Read-Host "Enter Member name" New-DistributionGroup -Name "$distgroup" -OrganizationalUnit "$orgunit" -SAMAccountName "$distgroup" -Type "Distribution" Set-DistributionGroup -EmailAddressPolicyEnabled:$False Set-DistributionGroup -Identity $distgroup -EmailAddresses $firstname.lastname@example.org Set-DistributionGroup $distgroup -requiresenderauthenticationenabled:$False Add-DistributionGroupMember -Identity "$distgroup" -Member
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.