Announcement

Collapse
No announcement yet.

Primary group: display username and primary group

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Primary group: display username and primary group

    need a little help with this script. this is a script that will query an users primary group. the problem I am having is that the particular user are not listed along with the primary group.

    Bascally when i run the script it shows the primary group name, type(group) and DN. However I need the username from which the primary group was queried from to be displayed as well . Any help is greatly appreciated. Thanks

    c:\username1.txt | get-qaduser | %{get-qadgroup "$($_.domain.sid)-$($_.primarygroup
    id)" }
Working...
X