Bug/Issue Description
New-SystemData generates system data twice for each Organizational Unit identified in ADDS, throws an empty searchbase error, and places some system data in the root of the systems folder.
Reproduction Steps
Steps to reproduce the behavior:
Initialize StigRepo
Run New-SystemData in an ADDS environment
Notice that each OU is targeted twice for systemdata generation
Expected Behavior
Each OU should only be targeted once and system data files should be placed in the appropriate folders.
Recommended fix action
Fix the New-SystemData function to only target each OU a single time and place system data files in the correct file location.
Existing Workarounds
N/A
Screenshots
Additional context
Add any other context about the problem here.
Bug/Issue Description New-SystemData generates system data twice for each Organizational Unit identified in ADDS, throws an empty searchbase error, and places some system data in the root of the systems folder.
Reproduction Steps Steps to reproduce the behavior:
Expected Behavior Each OU should only be targeted once and system data files should be placed in the appropriate folders.
Recommended fix action Fix the New-SystemData function to only target each OU a single time and place system data files in the correct file location.
Existing Workarounds N/A
Screenshots![image](https://user-images.githubusercontent.com/35388475/130531312-24560e09-9dab-43a0-a46e-15ca179c557a.png)
Additional context Add any other context about the problem here.