@enumservers and @enumshares issues

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
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
 

rconn

Administrator
Staff member
May 14, 2008
10,291
90
#2
> 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