From the course: PowerShell for Exchange Administration

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Managing distribution groups

Managing distribution groups

- [Instructor] Let's take a look at managing distribution groups in Exchange using PowerShell. So the first thing is you either need to be working inside of the Exchange Management Shell or have an Exchange PowerShell session open. You can see here that I've got, an Exchange PowerShell session open. So first, to create a distribution group we use the New-DistributionGroup commandlet and give it the name of the group we want to create. And that is the only required parameter 'cause they can actually create most of the default. They can actually create all the other parameters based on default values. So you can see the DisplayName and the PrimarySmtyAddress were created from the name. And then it defaults to creating a universal group. But of course, if we wanted to create a group with more settings to start with we can remove it using the Remove-DistributionGroup, giving it the name of the group. In this case I'm also using the Confirm false flag so that it doesn't prompt me. And then…

Contents