Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-05-23
4
Medium Priority
?
338 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
Viewers will learn the different options available in the Backstage view in Excel 2013.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

609 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