Last post Feb 20, 2008 11:26 PM by dhanashivam
Feb 20, 2008 01:09 AM|dhanashivam|LINK
I am new for Active Directory. I am using the DirectorySearcher class for reading the usernames from active directory domain users.
But i am getting the IUSER account too. I dont want these type of accounts. I need to eliminate IUSR_COMPUTERNAME accounts.
How to do it? Tell me please.
My Code is:
DirectoryEntry Entry =
DirectorySearcher Searcher =
Feb 20, 2008 04:39 AM|GavDraper|LINK
you need a way of identifying real people from the automated fake accounts. Is there antying in your Active Directory to seperate the 2? I recently did somehting similar and all the real people were in a CompanyUsers OU so I just put a filter in place to
only takes those people. You could also put check in for example to only take people who have an email address if alll valid users have one. You just need to find something that seperates real people from these other accounts,
Feb 20, 2008 11:26 PM|dhanashivam|LINK
Thanks. It was very useful for me to achieve my task.
Also i need to find the group name and domain name for all the users.
that is i need to have a datatable with
username, groupname, domainname.
can you please tell me the code for it?
Thanks in Advance.