Solved

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

Posted on 2013-05-23
4
336 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
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…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

726 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