473,770 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1378
Mark,
I don't have a specific example.

Have you looked at the System.Director yServices 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 DirectorySearch er class.

Hope this helps
Jay

"Mark Hollander" <ma**@atcom.co. za> wrote in message
news:l7******** *************** *********@4ax.c om...
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 DirectorySearch er 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)
DirectorySearch er 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******** ******@TK2MSFTN GP09.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
3478
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 Pentagjetvedeh karuvificials madhla reachathe strategy in karkun campaign deshatinst terrorism. "mudivae maretu winning or losing karkun global varti jetvedeh terror?" Mr. Rumsfeld adugued in a recent memormariyuum. vede velli jetvedeh madhla...
2
4556
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): adsi = win32com.client.Dispatch("ADsNameSpaces")
1
2611
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 servers. The problem is the remote servers are all in different domains with no trusts between them, so I cannot run the site as a domain user. I currently have a login page that gathers user names and passwords. Can I somehow use those to connect...
13
3630
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: Document settings\ServerName\ASPNET\Local settings\Temp I said it must be a typo, they meant to say c:\Documents And Settings\Server Name\ASPNET\Local settings\temp.
1
2306
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
1088
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 docroot is NOT on the local machine, but rather on a directory mounted from another computer on the Domain. My questions are: What are ALL of the users that need to be configured to have permissions on this remote file-system so that ASP.NET...
0
5576
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 ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
4
5691
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 *************************************************************************************************** DirectoryEntry AD = new DirectoryEntry("WinNT://" + sServerName + ",Computer",UserName,Password); DirectoryEntry admGroup = AD.Children.Find("Administrators", "Group"); object members = admGroup.Invoke("Members", null); ...
7
1409
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 familiar with all the ins and outs. The problem is that some machines can open my web app and some machines cannot...In fact, the server, which is hosting the app and has VS.Net installed, cannot access the app via the external IP address, but other...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.