Solved

Exchange Powershell command for all Distribution lists

Posted on 2011-02-16
5
1,793 Views
Last Modified: 2012-05-11
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.

0
Comment
Question by:mwkalt
  • 2
  • 2
5 Comments
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 34913367
0
 
LVL 6

Expert Comment

by:craig_j_Lawrence
ID: 34913487
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
0
 

Author Comment

by:mwkalt
ID: 34919030
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

0
 
LVL 6

Accepted Solution

by:
craig_j_Lawrence earned 500 total points
ID: 34922076
Sorry, I think I misread your question!

The oneliner will look for all dls that are currently configured to accept unauthenticated users, then set them to require authentication

The following one liner will find all Dls that require authentication, then sets them to allow unauthenticated users

get-distributiongroup | where {$_.requiresenderauthenticationenabled} |set-distributiongroup -requiresenderauthenticationenabled:$false

Open in new window

0
 

Author Closing Comment

by:mwkalt
ID: 34922197
Perfect! This is exactly what I was looking for.

Thanks a million!!!
0

Featured Post

Will my email signature work in Office 365?

You've built an email signature using raw HTML code in Office 365, but you can't review how it looks with Transport Rules. So you have to test it over and over again before it can be used. Isn't this a bit of a waste of your time? Wouldn't a WYSIWYG editor make it a lot easier?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This article will help you understand what HashTables are and how to use them in PowerShell.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now