I have code that pulls AD groups from several locations. One piece that pulls codes from three different OUs; and another section that pulls a list of AD groups from a text file. I would like all groups to be in a single variable so that I can query group membership within a single foreach. How would that be done?
I signed up just so I could give Olaf a hug for that solution. I was being stupid and trying to do it the hard way. $AllGroups = $Groups1 + $Groups2 works so easy I’m scolding myself!