Link to home
Create AccountLog in
Avatar of mwkalt
mwkalt

asked on

Exchange Powershell command for all Distribution lists

I recently took over for an outgoing admin and I am finding some of our distribution lists have the option to allow unauthenticated users send to them and some do not. There is no standard so I would like to see if there is a powershell command that will make this switch for all lists in the domain that will allow unauthenticated users to send to them.

Thanks in advance.

Avatar of Kalpesh Chhatrala
Kalpesh Chhatrala
Flag of India image

What version of Exchange are you using? in Exchange 2010 the following command will get all DLs with authenticationrequired set to false, and enable requireauthentiation
get-distributiongroup | where {!$_.requiresenderauthenticationenabled} |set-distributiongroup -requiresenderauthenticationenabled:$true

Open in new window


CAUTION: this will act on ALL DLs that allow unauthenticated messages
Avatar of mwkalt
mwkalt

ASKER

I am using Exchange 2010 but before I run that command I wanted to clarify that I want to make sure that all DL's are set to "Allow Unauthenticated Users"...Your description makes me think that your command will do the exact opposite.

Although it's a great script that I have saved for later I just wanted to double check before I make a lot of more work for me.

Thanks

ASKER CERTIFIED SOLUTION
Avatar of craig_j_Lawrence
craig_j_Lawrence
Flag of Australia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of mwkalt

ASKER

Perfect! This is exactly what I was looking for.

Thanks a million!!!