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

Regards
Thanks in advance.

Active-structure.bmp
file.txt
jmsienriqueAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike KlineCommented:
In this case your OU path would be

"OU=users,OU=lo-mxdc01,OU=locations,ou=ac-mxmem01,OU=r02,DC=prod,DC=atc,dc=corp"

the other command would get you all your users.

Thanks

mike
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 !
Active-users.txt
0
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 :)

Thanks

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

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 ?
REgards
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.