By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,215 Members | 1,941 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,215 IT Pros & Developers. It's quick & easy.

Enumerating servers & workstations

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.