Solved

Exchange Powershell command for all Distribution lists

Posted on 2011-02-16
5
1,823 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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