diffrence dsquery and get-adgroup

Welcome Forums General PowerShell Q&A diffrence dsquery and get-adgroup

This topic contains 4 replies, has 3 voices, and was last updated by

 
Participant
1 year, 10 months ago.

  • Author
    Posts
  • #60879

    Participant
    Points: 1
    Rank: Member

    There commands should be the same:

    dsquery group "CN=ab.test.something.s,OU=Administration,OU=Groups,DC=ab,DC=company,DC=com"
    get-adgroup "CN=ab.test.something.s,OU=Administration,OU=Groups,DC=ab,DC=company,DC=com"

    But for some reason, the get-adgroup cant find all of the groups, that i can find with dsquery.
    Any one know why?

  • #60882

    Keymaster
    Points: 1,619
    Helping HandTeam Member
    Rank: Community Hero

    Is it a matter of not being the same quantity? Get-ADGroup does throttle the results into pages.

  • #60916

    Participant
    Points: 21
    Rank: Member

    be more specific..that is only going to return a single group.

    Are you saying get-adgroup can't find that specific group?

  • #60921

    Participant
    Points: 1
    Rank: Member

    Yes, when i search 1 group, dsquery wil find the group. Get-adgroep returns nothing.

  • #60922

    Participant
    Points: 21
    Rank: Member

    I can't reproduce this behavior in my forest.

The topic ‘diffrence dsquery and get-adgroup’ is closed to new replies.