• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 773
  • Last Modified:

problems to understand the quest cmdlets commands

Hello again
I asked a question about how to get a list of all my users with the groups that each one belongs, pubeheed advised me the quest cmdlets and with the next line commands

Get-qaduser -searchroot "ou=OU of your users,dc=domain,dc=com" -enabled | select samaccountname,displayname, memberof | out-file c:\temp\userdata.txt

If you do not know the full path of your OU use this command:
Get-qaduser  -enabled | select samaccountname,displayname, memberof | out-file c:\temp\userdata.txt

As i do not know I am running the second line where it supposed to get the full path of your OU, but the file  show this information

What can i do in order to get the complete ou ?

Please Help me

Thanks in advance.

  • 3
  • 2
1 Solution
Mike KlineCommented:
In this case your OU path would be


the other command would get you all your users.


jmsienriqueAuthor Commented:
Thanks to write again Mkline71
i could create the file now the final question is from each user i need to know to all the groups that the user belongs, because in the file only show me one and with point
is it to much to ask ?
or do i need to create another questions
You are a genius !
Mike KlineCommented:
try changing  select samaccountname,displayname, memberof

to ft -wrap  samaccountname,displayname, memberof

I'm not a genius but thanks :)

If you want to open a new question in the powershell area then you will see the real powershell genius...Chris Dent :)


jmsienriqueAuthor Commented:
The command run
but did not bring any information,
the file is empty
what another could be ?
jmsienriqueAuthor Commented:

I run the command adfind and oyu tell me that i need to change the DN of my Ou, but i do not how , could you tell me please taking the example of my another question ?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now