Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition
by Jonas Andersson, Nuno Mota, Mike Pfeiffer
How it works...
The first command will retrieve all the non-universal mail-enabled distribution groups in your organization and pipe the results to the Set-Group cmdlet which will convert them using the -Universal switch parameter. It may not be a big deal to modify a handful of groups, but if you have hundreds of mail-enabled non-universal groups the command in the previous example can save you a lot of time.
If you have a large number of groups to convert, you may find that some of them are members of another global group and cannot be converted. Keep in mind that a universal group cannot be a member of a global group. If you run into errors because of this, you can convert these groups individually using the Set-Group cmdlet. Then you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access