Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@enumservers and @enumshares issues

May
3,515
5
1/ @enumservers[-1,*] on the current network configuration returns -1, and the only server name returned by @enumservers[n,*] when cycling through values of n is \\LAPTOP. However, @enumservers[0,*,DOMAIN_ENUM] returns \\MSHOME, which is the machine where TCC is running. In other words, two distinct servers are reported when going through all server type names in HELP topic f_enumservers.htm, but the typeless form only reports the one remote server. WAD or bug?

2/ HELP topics f_enumservers.htm and f_enumshares.htm both contain a statement "Returns a null string If there are fewer than n matching servers/shares." This is incorrect because of the 0-based reporting. Correctly HELP should have "fewer than n-1".
--
Steve
 
> 1/ @enumservers[-1,*] on the current network configuration returns -1,
> and the only server name returned by @enumservers[n,*] when cycling
> through values of n is \\LAPTOP. However, @enumservers[0,*,DOMAIN_ENUM]
> returns \\MSHOME, which is the machine where TCC is running. In other
> words, two distinct servers are reported when going through all server
> type names in HELP topic f_enumservers.htm, but the typeless form only
> reports the one remote server. WAD or bug?

WAD. Your \\MSHOME isn't a server, it's a domain name.

Rex Conn
JP Software
 

Similar threads

Back
Top