Solved

Exchange 2007 Powershell script to "RequireSenderAutenticationEnabled:$true" for a list of users

Posted on 2013-05-23
4
335 Views
Last Modified: 2013-05-28
In my Exchange 2007 environment, I have several hundred Dynamic Distribution Groups that currently have the "RequireSenderAuthenticationEnabled" set to $false and I'd like to change the value to true.  I've currently got a list of the Dynamic Distribution Groups in a .txt file (separated out by name one line at a time), and I'm setting a variable by running "Get-Content allareas.txt".  Below is my script:

$Recipients = get-content allareas.txt

foreach ($Recipient in $Recipients)
{
   if ($Recipient.RecipientType -eq "DynamicDistributionGroup") {
      set-DynamicDistributionGroup $Recipient.name -RequireSenderAuthenticationEnabled:$True}
}

Upon running this script, nothing happens.  I don't get any errors or any text back in the EMS that would indicate it ran successfully.  If I go into the EMC and look at the Dynamic Distribution Groups I see that the box is NOT checked to Require all senders to be authenticated.  Any help would be greatly appreciated.
0
Comment
Question by:AAP_Midrange
[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
  • 3
4 Comments
 
LVL 19

Expert Comment

by:Raheman M. Abdul
ID: 39191229
$Recipients = get-content allareas.txt

foreach ($Recipient in $Recipients)
{
   if ($Recipient.RecipientType -eq "DynamicDistributionGroup") {
      set-DynamicDistributionGroup $Recipient.name -RequireSenderAuthenticationEnabled $True}
}
0
 
LVL 1

Author Comment

by:AAP_Midrange
ID: 39191269
How is the proposed script any different than the script I posted in the original question?
0
 
LVL 1

Accepted Solution

by:
AAP_Midrange earned 0 total points
ID: 39191306
Nevermind. I solved my own problem with the following script:

Get-Content d:\tools\allareas.txt |  Set-DynamicDistributionGroup -RequireSenderAuthenticationEnabled:$true
0
 
LVL 1

Author Closing Comment

by:AAP_Midrange
ID: 39200648
Solved issue
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Find out what you should include to make the best professional email signature for your organization.
This video discusses moving either the default database or any database to a new volume.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

738 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