Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1363
  • Last Modified:

Send Delivery Reports to Group Manager - PowerShell

Hi,

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.

Thanks
0
fafricano
Asked:
fafricano
  • 3
  • 2
1 Solution
 
GusGallowsCommented:
This should do it:
$dg = get-distributiongroup -resultsize unlimited
foreach ($group in $dg)
{
	set-distributiongroup $group -ReportToManagerEnabled:$True
}

Open in new window

0
 
fafricanoAuthor Commented:
Thanks, Gus.  Is this a VBS script?
0
 
GusGallowsCommented:
No, this is powershell. Just run it from Exchange management shell.
0
 
GusGallowsCommented:
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:
c:\scripts\setgrp.ps1

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

(The period before the path is needed but the ps1 extension at the end is not.)
0
 
fafricanoAuthor Commented:
Great!  Thanks!
0

Featured Post

Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now