Results 1 to 3 of 3

Thread: how to find out object type(user,computer,group) in active directory?

  1. #1
    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 ............

  2. #2
    Join Date
    May 2008
    Posts
    5,812

    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.

  3. #3
    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.........

Similar Threads

  1. Replies: 5
    Last Post: 22-05-2010, 07:33 AM
  2. Replies: 2
    Last Post: 29-08-2008, 06:47 AM
  3. How can I find out who created a user account in Active Directory
    By bubblecrumb in forum Windows Server Help
    Replies: 0
    Last Post: 13-02-2008, 02:00 PM
  4. Replies: 4
    Last Post: 02-11-2007, 12:35 AM
  5. Replies: 5
    Last Post: 13-06-2007, 07:23 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,477,463.48229 seconds with 17 queries