Solved

need assistance modifying this script to target all distribution groups in the enterprise, not just a single DG.

Posted on 2012-03-26
2
351 Views
Last Modified: 2012-05-07
hello, we use the following script to list DL restrictions of a single Distribution group.

how can we modify this to target all Distribution groups in a particular OU, and generate an HTML report that we can send out.

thx in advance.

/See attached script code
get-dlrestrictions.txt
0
Comment
Question by:siber1
2 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 37770325
to get all Distribution groups in a particular OU, simply pass OU path as first parameter to Get-QADGroup (line 17) and remove $DLName parameter.

for instance:
foreach ($DL in (get-QADGroup 'DC=sd-develop,DC=local' -GroupType 'Distribution' -IncludedProperties AuthOrig, UnauthOrig, dLMemRejectPerms, dLMemSubmitPerms, msExchRequireAuthToSendTo) {

//now do something with $DL ...

}

Open in new window

0
 

Expert Comment

by:mrrj
ID: 37938638
Do you have a copy of the final script you used?  I have tried to follow the solution but am getting errors about Unexpected token.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 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