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

Tags: ,

Sponsored Links



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

Software Development


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
Simond's Avatar
Member
 
Join Date: May 2008
Posts: 5,656
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.
__________________
IndiaGarage - India's Online Garage Driven by a Mouse
Reply With Quote
  #3  
Old 06-08-2009
fellah's Avatar
Member
 
Join Date: May 2008
Posts: 690
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


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
Granting access via security group (user object vs. computer object ikaikaokaina Active Directory 2 15-04-2010 08:31 PM
Active Directory >> Select this object type? Sean McGilvray Active Directory 2 01-04-2009 04:40 PM
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 01:35 AM
Cannot add a user to group using active directory users and computers console Rahul Active Directory 3 07-06-2007 12:41 AM


All times are GMT +5.5. The time now is 07:39 AM.