473,378 Members | 1,549 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,378 software developers and data experts.

Enumerating servers & workstations

Hi,

Can anyone please tell me how I can retrieve a list of servers and
workstations names on the current domain? I'm not particularly interested
about what type of machine they are, just their names which I can add to a
combo box.

Any assistance gratefully received.

Best regards,

Mark Rae
Nov 15 '05 #1
1 1206
Hi!

Use the NetServerEnum API via Pinvoke.

--
Regards,
Kumar Gaurav Khanna
-----------------------------------------------------------------
Microsoft MVP - C#/.NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/
Bangalore .NET Users' Group
http://groups.msn.com/bdotnet/
"Mark Rae" <ma**@markrae.co.uk> wrote in message
news:Os*************@tk2msftngp13.phx.gbl...
Hi,

Can anyone please tell me how I can retrieve a list of servers and
workstations names on the current domain? I'm not particularly interested
about what type of machine they are, just their names which I can add to a
combo box.

Any assistance gratefully received.

Best regards,

Mark Rae

Nov 15 '05 #2

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

Similar topics

2
by: Peter | last post by:
We try to manage security on our workstations within our organization. So we decided to revoke local Admin rights for developers on there laptops and or workstations , has anyone white papers or...
0
by: jimmojelsky | last post by:
Access97 database - it is set up to share between several computers - some users have full access, others only have read access - locking is set at "no lock" - everything works unless one of the...
6
by: Michael C | last post by:
Hi all, I am currently using a Win32 API call to NetServerEnum to enumerate all SQL Servers on an NT Domain. The function returns the names of all servers running SQL Server on the network, but...
0
by: Michael C | last post by:
Hi all, After a lot of research, I've come to some realizations about enumerating Named Instances of MSDE. NetServerEnum() Win32 API function doesn't work, SQL-DMO doesn't work, no standard...
1
by: Ken Allen | last post by:
Is there a native .Net mechanism for enumerating a list of all of the servers/systems in a LAN? Or must I resort to a Win32 call to achieve this? -ken
7
by: CoolBreeze812 | last post by:
Hello, I'm using the following code to get the list of computers joined to a domain in Active Directory and using the System.DirectoryServices namespace. DirectoryEntry dirEntry = new...
0
by: davidhomer | last post by:
Hello, I have a VB.NET application that is required to find Windows NT4 Servers on a network. It currently does this by using the Browse List. This isn't exactly ideal. I can find NT BDCs by...
2
by: bhowerton | last post by:
Hello, I am trying to setup an office LAN. It will be a small network at first. I have one PC serving as a Windows 2003 Server (this machine has 2 Ethernet cards installed). I also have a D-Link...
1
by: Fred Zuckerman | last post by:
I have a database on a shared drive. It has user level security (ie: mdw file). It was created in A2000 and works fine when opened on workstations with A2000 installed. Some workstations have...
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...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.