ddiazp
asked on
Exchange Command [EASY]
So I have to execute this command:
Set-Mailbox -Identity "ADGroup" -RequireSenderAuthenticati onEnabled $false
For everyone of my distribution lists.
Is there a wildcard I can use or do I have to come up with a script that will query AD for distribution lists and then use a loop to execute this command to all?
Set-Mailbox -Identity "ADGroup" -RequireSenderAuthenticati
For everyone of my distribution lists.
Is there a wildcard I can use or do I have to come up with a script that will query AD for distribution lists and then use a loop to execute this command to all?
ASKER
"ADGroup" is where each DL should be specified, command doesn't work.
Any other suggestions?
Any other suggestions?
That should do it.
$DLs = Get-DistributionGroup -ResultSize unlimited
foreach ($DL in $DLS){Set-DistributionGroup $DL.Name -RequireSenderAuthenticationEnabled:$False}
ASKER
Awesome, will try that shortly. Can we output to a text file each DL it applies the changes to?
Something like echo/print $DLs > list.log or something ?
Something like echo/print $DLs > list.log or something ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you sir, worked great.
Get-DistributionGroup | Set-Mailbox -Identity "ADGroup" -RequireSenderAuthenticati