Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating groups

Management With PowerShell

Creating groups

by  Zelandakh  Posted    (Edited  )
# Creating a mail enabled universal distribution group
new-distributiongroup -alias unidistgroup -name ôThe Big Distribution Groupö -type distribution -org Punters

# Creating a mail enabled universal security group
# This is not a desperately clever idea otherwise email administrators can add users to this group
new-distributiongroup -alias unisecgroup -name ôThe Big Security Groupö -type security -org Punters

# Creating a mail enabled dynamic distribution group
new-DynamicDistributionGroup -alias dyndistgroup -name ôThe Big Dynamic Groupö -recipientfilter {Company -eq "msexchange"} -org Punters

# Creating a mail enabled AD contact
new-mailcontact -alias ADcontact -name ôMay L Contact" -ExternalEmailAddress MayLContact@somewhere.com -org Punters
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top