Change the attribute of 10k Distribution list RRS feed

  • Question

  • Hi Experts,

    I have around 10k distribution list for which i  need to change the following attribute

    AuthOrig  $null -  “To Accept message from all the users”

    msExchRequireAuthToSendTo $false – “To accept messages from outside organization”

    I got the script tested and working with single group, when doing it on bulk it’s not recognizing the group name. So, I am still working on it. Let me know your thoughts on this.

    I tried with email address, Groupname, Mailnickname as input but it’s not recognizing 

    Script for reference:

    foreach ($users in Get-content "d:\ALLDLS.txt")


    Set-adGroup $users -clear AuthOrig -replace @{msExchRequireAuthToSendTo="FALSE"}


    Do we have any other options for bulk modification, I have also attached the list of Distribution groups which we need to modify for your reference


    Thursday, December 17, 2015 3:38 PM


  • Get-Content D:\ALLDLS.txt | ForEach-Object {
      Set-ADGroup $_ -Clear authOrig -Replace @{"msExchRequireAuthToSendTo"=$false} -WhatIf

    Of course, remove the -WhatIf parameter to actually run the command.

    -- Bill Stewart [Bill_Stewart]

    • Proposed as answer by Bill_Stewart Wednesday, December 23, 2015 3:11 AM
    • Marked as answer by Masthanomatic Tuesday, December 29, 2015 2:25 PM
    Thursday, December 17, 2015 4:16 PM