Forum Discussion
Scouter_Ted
Dec 31, 2019Copper Contributor
Changing DL setting for every DL in the company?
A company I am working for recently split in half. As part of that all of the DL's were brought over from one exchange system to the other. The email accounts are in the process of being moved over...
VasilMichev
Jan 02, 2020MVP
You can simply preview the result of the cmdlet execution by using the -WhatIf switch. Not all cmdlets support it though, so be careful. Anyway, here's an example that updates all groups to allow external senders:
Get-DistributionGroup | Set-DistributionGroup -RequireSenderAuthenticationEnabled $false
If you want to run it against a subset of the groups, use the filter parameter or import the list of groups from CSV, etc.