Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

828 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