Reference the System.DirectoryServices and have a look at the classes available, it should enable you to list the users in a domain. If you set the domain to "." your machine name it should list the users. Of course you'll need to be an admin on the machine to make it work.
Using VB.NET 2003/.NET 1.1/C# 2.0 http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...
i did not find the package / classs System.DirectoryServices in .NET 1.1 nor in .NET 2.0 please check it agian.
also refer to the attached image, i want that list somehow
Women ...r like tea bags, you neva know how strong they really r untill u put them in hot water
Huzefa Yousuf
Software Engineer
Verticity Inc.
+92-345-2235303 [email protected]
Reference the System.DirectoryServices and have a look at the classes available, it should enable you to list the users in a domain. If you set the domain to "." your machine name it should list the users. Of course you'll need to be an admin on the machine to make it work.
Do you know the difference between referencing an assembly and importing a namespace? They are completely unrelated. I'm guessing that you were trying to import a namespace, but if you haven't referenced any assemblies in which that namespace is defined then of course it won't be visible.
i knew that difference, i thought its reference would be included by default and got the classes in it. but still could not get what i wanted .. please check that whether the DirectoryServices can do it
Women ...r like tea bags, you neva know how strong they really r untill u put them in hot water
Huzefa Yousuf
Software Engineer
Verticity Inc.
+92-345-2235303 [email protected]
A .NET project only references a few commonly used assemblies by default. AD is definitely NOT commonly used so there's no reason that it would be referenced by default.