microsoft / StigRepo

Automated PowerSTIG Repository for Active Directory environments
35 stars 6 forks source link

ActiveDirectoryFunctions can't handle duplicate OU names #45

Closed wwellington2 closed 2 years ago

wwellington2 commented 2 years ago

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

Example of pulling multiple OUs for one system: duplicateOUnames

wwellington2 commented 2 years ago

Issue resolved in Issue-45-DuplicateOuNames PR