Send Delivery Reports to Group Manager - PowerShell

Posted on 2011-04-25
Last Modified: 2012-05-11

How can I set all of my distribution groups to Send Delivery Reports to Group Manager through Exchange Powershell?  I know it's possible, I just don't know the command.

Question by:fafricano
    LVL 12

    Expert Comment

    This should do it:
    $dg = get-distributiongroup -resultsize unlimited
    foreach ($group in $dg)
    	set-distributiongroup $group -ReportToManagerEnabled:$True

    Open in new window


    Author Comment

    Thanks, Gus.  Is this a VBS script?
    LVL 12

    Expert Comment

    No, this is powershell. Just run it from Exchange management shell.
    LVL 12

    Accepted Solution

    You can either cut and paste the whole thing into powershell, and hit enter twice after the last }, or you can copy it into a text file, save it as a .ps1 file and then call it from within powershell. So if you named the file setgrp.ps1, and you saved it in c:\scripts, you could call it in powershell by typing the following:

    If the current directory is C:\Scripts, you can run it as follows:

    (The period before the path is needed but the ps1 extension at the end is not.)

    Author Comment

    Great!  Thanks!

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Set OWA language and time zone in Exchange for individuals, all users or per database.
    Use email signature images to promote corporate certifications and industry awards.
    In this video we show how to create a User Mailbox 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 Recipients >> Mailb…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now