Hello experts,
I need your expert help in writing a powershell script that will pull the active directory group information from a specific organisation unit.
I am looking for a script that will work as per following:
1. Get the name of each AD groups from the specific OU and export to file
2. Using the exported file find MEMBER for each AD Group
3. Find MEMBER OF for each AD Group
4. Find SID for each AD Group
5. Find DN for each AD Group
6. pipe the output to CSV.
The output of this script should get me following result in .csv file
Group Name; Members; Member Of; SID; DN
Please note this script has to run on a particular OU in sctive directory
Thanks,
Vishal