Re: How to tell whihc OU the users belongs to



Sorry about that, doing this through a PS2 keyboard through a USB converter and occasionally it goes bonkers and starts sending control characters so got cut off....

If you are logged on as the user, you can most easily use username

F:\Dev\CPP\UserName>username -format 1

UserName V01.00.00cpp Joe Richards (joe@xxxxxxxxxxx) October 2002

CN=$jricha34,CN=Users,DC=joe,DC=com


You can get username from

http://www.joeware.net/win/free/tools/username.htm


If you are looking up an arbitrary user then you can use any LDAP query tool such as dsquery or adfind (http://www.joeware.net/win/free/tools/adfind.htm).


Obviously you can also write scripts to do this stuff as well, if you are interested in that, check out the AD Cookbook 2nd Edition and/or the Technet Script Center



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


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

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


Donny wrote:
How can I tell which organizational unit a user belongs to?

.



Relevant Pages

  • Re: Force Password change (Delegate control)
    ... It is selling like hotcakes and I am getting a ton of positive feedback. ... Joe Richards Microsoft MVP Windows Server Directory Services ... Author of O'Reilly Active Directory Third Edition ...
    (microsoft.public.win2000.active_directory)
  • Re: How to create VHD file via VSS (Volume Shadow Copy Service)
    ... Maybe you want to look at the VHD specification ... Joe Richards Microsoft MVP Windows Server Directory Services ... Author of O'Reilly Active Directory Third Edition ...
    (microsoft.public.win32.programmer.kernel)
  • Re: VPN Users - [WildPacket]
    ... Joe Richards Microsoft MVP Windows Server Directory Services ... Author of O'Reilly Active Directory Third Edition ... "WILDPACKET" wrote: ...
    (microsoft.public.windows.server.active_directory)
  • Re: VPN Users - [WildPacket]
    ... Joe Richards Microsoft MVP Windows Server Directory Services ... Author of O'Reilly Active Directory Third Edition ...
    (microsoft.public.windows.server.active_directory)
  • Re: modify users with empty UPN
    ... By default every user has a UPN which is samaccountname@domain_dns_name. ... If you want to put an actual hard value into the attribute, you will need to script it, see the technet script center. ... Joe Richards Microsoft MVP Windows Server Directory Services ... Marko Kralj wrote: ...
    (microsoft.public.windows.server.active_directory)