AD user object owner script

  • Thread starter Thread starter mrh2075
  • Start date Start date
M

mrh2075

I am trying to find a script that will dump the following data for all
users in Active dirrectory:

samaccountName
Owner

Any help would be great
 
Not a script but... (all one line)

adfind -gcb -f "samaccounttype=805306368" samaccountname -owner -resolvesids

If you want it in csv format, add -csv

You can get adfind at this link

http://www.joeware.net/freetools/tools/adfind/index.htm

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Editionwww.joeware.net

---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm





- Show quoted text -

Thank you very much. This will make my life so much easyer.

Matt
 
Back
Top