Comparing to Variables gives a unexpected difference

Welcome Forums General PowerShell Q&A Comparing to Variables gives a unexpected difference

Viewing 1 reply thread
  • Author
    Posts
    • #257294
      Participant
      Topics: 5
      Replies: 1
      Points: 67
      Rank: Member

      Good Morning ,

      I am confused …

      There is a ADGroup that has members . (42)
      I need to add all the members of specific ou’s (299)

      I have a $users with a total of 299 objects
      Also a $members with a total of 42 objects

      When I compare the $users and $members I expect it to tell me the diference ( who is not a memeber )
      To be sure I let powershell tell me the nr of objects of the comparison.
      In my opinion that should me 299-42 = 257
      Only Powershell tells me it is 261…Huh….

      Now I want to know why… of course
      Maybe something I forget or need to do on a different matter..?

       

       

    • #257312
      Participant
      Topics: 0
      Replies: 8
      Points: 55
      Rank: Member

      I would guess that 4 members of the AD group are in one of the OU’s you are filtering on.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.