Scenario:
One server AD Object
When running New-SystemData -ComputerName 'WEB1', if WEB1 is in an OU called Test. If there are any other OUs within the Domain named Test, those OUs will get pulled into the ouObject variable within ActiveDirectoryFunctions.ps1. When this happens StigRepo doesn't know which OU to use, which results in termination with no errors (screenshot of result below)
Scenario: One server AD Object When running New-SystemData -ComputerName 'WEB1', if WEB1 is in an OU called Test. If there are any other OUs within the Domain named Test, those OUs will get pulled into the ouObject variable within ActiveDirectoryFunctions.ps1. When this happens StigRepo doesn't know which OU to use, which results in termination with no errors (screenshot of result below)
Result:![output](https://user-images.githubusercontent.com/41164588/133839802-258d52cd-896f-4224-9a0a-9592b3fe4e34.png)
Example of pulling multiple OUs for one system:![duplicateOUnames](https://user-images.githubusercontent.com/41164588/133839240-efc344be-ebd9-4acc-97fd-9fa5791f6644.png)