Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

Help with Listing users in Domain and Local Machine - InstallService.gif (0/1)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Hollander - 10 Aug 2004 08:46 GMT
Hi All,

I am trying to write a application that will help with the
insallutil.exe to install a windows service.

What I am trying to do is generate a list of users from the Domain
that the user belongs to as well as a list of users from the local
machine.

Does anyone have or know where I can get example code to generate this
list

I have attached a screen shot that I hope will make this request
clearer

Thank You
Mark Hollander

Thank you
Mark Hollander
Jay B. Harlow [MVP - Outlook] - 10 Aug 2004 15:35 GMT
Mark,
I don't have a specific example.

Have you looked at the System.DirectoryServices namespace? It has objects
that you can use to query Active Directory, where you should be able to get
your list of Domains & users.

I would start with the DirectorySearcher class.

Hope this helps
Jay

> Hi All,
>
[quoted text clipped - 16 lines]
> Thank you
> Mark Hollander
Mark Hollander - 11 Aug 2004 07:55 GMT
Would this handle WindowsNT 4.0

Thank You
Mark Hollander
Jay B. Harlow [MVP - Outlook] - 11 Aug 2004 14:02 GMT
Mark,
It might, try it.

Did you check the help on the DirectorySearcher class?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fSystemDirectoryServicesDirectorySearcherClassTopic.asp


It indicates that Windows NT 4.0 is a supported platform. Further it has
links to samples & further information on how to use it!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbco
nIntroductionToADSIObjectsInVisualStudio.asp


Reading this second link it suggests you can search LDAP, WinNT, NDS, or
NWCOMPAT.

As I stated I would start with (reading) the (information on the)
DirectorySearcher class! As I do not have a specific example. However! The
above links appear to include both information & samples that you will need!

Hope this helps
Jay

> Would this handle WindowsNT 4.0
>
> Thank You
> Mark Hollander
kapcreations - 28 Oct 2004 06:07 GMT
just a side note, when you write a windows service, the installutil.exe is
intended for development purposes.  I have seen articles which state it
should not be referenced in a setup .exe

kapcreations

> Hi All,
>
[quoted text clipped - 16 lines]
> Thank you
> Mark Hollander

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.