Re: How to tell whihc OU the users belongs to
- From: "Joe Richards [MVP]" <humorexpress@xxxxxxxxxxx>
- Date: Mon, 15 Jan 2007 11:28:31 -0500
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?.
- Prev by Date: Re: How to tell whihc OU the users belongs to
- Next by Date: Re: ADFS - SAML audience
- Previous by thread: Re: How to tell whihc OU the users belongs to
- Next by thread: Re: Clients XP SP2 Error
- Index(es):
Relevant Pages
|