Link to home
Start Free TrialLog in
Avatar of AAP_Midrange
AAP_MidrangeFlag for United States of America

asked on

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

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.
Avatar of Raheman M. Abdul
Raheman M. Abdul
Flag of United Kingdom of Great Britain and Northern Ireland image

$Recipients = get-content allareas.txt

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

ASKER

How is the proposed script any different than the script I posted in the original question?
ASKER CERTIFIED SOLUTION
Avatar of AAP_Midrange
AAP_Midrange
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Solved issue