473,327 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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

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
Nov 21 '05 #1
4 1364
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

"Mark Hollander" <ma**@atcom.co.za> wrote in message
news:l7********************************@4ax.com...
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

Nov 21 '05 #2
Would this handle WindowsNT 4.0

Thank You
Mark Hollander

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #3
Mark,
It might, try it.

Did you check the help on the DirectorySearcher class?

http://msdn.microsoft.com/library/de...ClassTopic.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/de...sualStudio.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
"Mark Hollander" <ma**@atcom.co.za> wrote in message
news:uq**************@TK2MSFTNGP09.phx.gbl...
Would this handle WindowsNT 4.0

Thank You
Mark Hollander

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 21 '05 #4
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

"Mark Hollander" wrote:
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

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
2
by: Dirk Hagemann | last post by:
Hi! I'm using this code to list all computers of our WinNT-Domains: import win32com.client from pprint import pprint as p domain='domainX' auswahl='computer' def enumerate(domain,auswahl):...
1
by: Dan King | last post by:
I have a few ASP pages that run great on a local machine. They read folder content then display the information in the browser. I would like to be able to read the same data from several remote...
13
by: Siegfried Heintze | last post by:
I refered the engineer at my hosting service to http://support.microsoft.com/default.aspx?scid=kb;en-us;825738 where he tried to follow the directions there. He said there was no such file:...
1
by: Mark Hollander | last post by:
Hi All, Could you please help me convert this code so that it will run in VB.NET Thank You Mark Hollander Private Type USER_INFO Name As String
1
by: Alex Maghen | last post by:
Hi. I am trying to configure a development server environment as follows: Windows Server 2003 - HTTP/IIS/ASP.NET 2.0 is a server which is on a Windows Domain. I want to create a Site in IIS whose...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
4
by: shashank kadge | last post by:
hi all, i am trying to get local admin users and groups on a windows server. here is the C# code that i am using...
7
by: =?Utf-8?B?SnVzdGlu?= | last post by:
Hello Everyone: I am having the most bizarre problem with my asp.net web app...this is my first web app in asp.net and I inherited it from a programmer who quit...so, I am not completely...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.