Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 06-08-2009
Member
 
Join Date: Jun 2009
Posts: 18
Post how to find out object type(user,computer,group) in active directory?

hi everyone,

i am having list of object IDS as shown below,
BUILTIN\USERS
AUTHORITY\SYSTEM
BUILTIN\ADMINISTRATORS etc.........

i want to take this ID and query AD to get what kind of object it is(user object ,or computer ,group)?

i need to separate only the group object is it possible?

pls provide me solution ............
Reply With Quote
  #2  
Old 06-08-2009
Member
 
Join Date: May 2008
Posts: 5,790
Re: how to find out object type(user,computer,group) in active directory?

Hello vivekmohan,

Can you please have a look at this topic?
http://technet.microsoft.com/en-us/l.../bb727067.aspx

I Hope this helps you.
Reply With Quote
  #3  
Old 06-08-2009
Member
 
Join Date: May 2008
Posts: 685
Re: how to find out object type(user,computer,group) in active directory?

Why don't you use the objectCategory property to identify the object type. You can have the below statements in your code:

DirectoryEntry.Properties("objectCategory")(0) = "group"
DirectoryEntry.Properties("objectCategory")(0) = "user"
DirectoryEntry.Properties("objectCategory")(0) = "computer"
etc.........
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "how to find out object type(user,computer,group) in active directory?"
Thread Thread Starter Forum Replies Last Post
The version of the Active Directory schema of the source forest is not compatible with the version of Active Directory on this computer Blaine Active Directory 5 22-05-2010 07:33 AM
REPOST: Add "Object" tab to 'Active Directory Users and Computers' tool to obtain the "Canonical name of object". Ihit Windows Security 2 29-08-2008 06:47 AM
How can I find out who created a user account in Active Directory bubblecrumb Windows Server Help 0 13-02-2008 02:00 PM
Delegate Control in Active Directory to allow group to unlock user accounts Nino_1 Active Directory 4 02-11-2007 12:35 AM
Getting the properties of a DirectoryEntry (local user) in c# whenthe user is a domain account? Active Directory Michael Howes Active Directory 5 13-06-2007 07:23 AM


All times are GMT +5.5. The time now is 01:03 AM.