Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

NetServerEnum

I am trying to use NetServerEnum to (duh) enumerate all of the NT machines
on the domain. However, no matter WHAT number I put in the ServerType
paramater, it ALWAYS enumerates EVERYTHING. I just want it to enumerate NT
mahcines. What's wrong?

NT4.0 SP6A
VB6 SP3

Thanks,
Chris...
[322 byte] By [Chris Howell] at [2007-11-10 0:20:28]
# 1 Re: NetServerEnum
Chris,

> I am trying to use NetServerEnum to (duh) enumerate all of the NT machines
> on the domain. However, no matter WHAT number I put in the ServerType
> paramater, it ALWAYS enumerates EVERYTHING. I just want it to enumerate NT
> mahcines. What's wrong?

Yep, check out one of my Ask The NT Pro answers at
http://www.inquiry.com/techtips/nt_pro/answer.asp?pro=nt_pro&docID=2654.

--
L.J. Johnson, Slightly Tilted Software
Microsoft MVP (Visual Basic)
LJJohnsn@Flash.Net or LJJohnson@mvps.org
<http://www.flash.net/~ljjohnsn>
Ask The NT Pro at <http://www.inquiry.com>
L.J. Johnson at 2007-11-11 20:03:32 >
# 2 Re: NetServerEnum
Chris,

> I am trying to use NetServerEnum to (duh) enumerate all of the NT machines
> on the domain. However, no matter WHAT number I put in the ServerType
> paramater, it ALWAYS enumerates EVERYTHING. I just want it to enumerate NT
> mahcines. What's wrong?

Yep, check out one of my Ask The NT Pro answers at
http://www.inquiry.com/techtips/nt_pro/answer.asp?pro=nt_pro&docID=2654.

--
L.J. Johnson, Slightly Tilted Software
Microsoft MVP (Visual Basic)
LJJohnsn@Flash.Net or LJJohnson@mvps.org
<http://www.flash.net/~ljjohnsn>
Ask The NT Pro at <http://www.inquiry.com>
L.J. Johnson at 2007-11-11 20:04:31 >