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
362 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
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 …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

688 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