Enumshares works sometimes

Aug 28, 2008
111
3
It must be my day for problems. I just posted about an issue with enumservers, and now I'm seeing weirdness from enumshares as well. If I ask it to enumerate the shares of my machine named Ancalagon, here's what I get:

enumshares /a \\Ancalagon\*
\\Ancalagon\ADMIN$
\\Ancalagon\C$
\\Ancalagon\D$
\\Ancalagon\F$

But if I ask it to enumerate the shares of my machine named Tirion, here's what I get:

enumshares /a \\Tirion\*
TCC: (Sys) The format of the specified share name is invalid.
"\\Tirion\*"

Both machines are running the same version of Windows (10 Pro x64 with all the latest updates). Both machines have network shares visible. Yet the enumshares command works for the first machine but not the second. Any ideas?
 
May 20, 2008
10,674
83
Syracuse, NY, USA
Are you sure Tirion can be found? That's the error I get if I specify a server that doesn't exist.

Code:
v:\> enumshares /a \\no_exist\*
TCC: (Sys) The format of the specified share name is invalid.
 "\\no_exist\*"
 
Aug 28, 2008
111
3
Yup. I can easily access all its shares from that very machine on which I'm running the enumshares command that's failing too. Here's a ping to demonstrate:

ping /4 tirion

Pinging tirion.attlocal.net [192.168.1.76] with 32 bytes of data:
Reply from 192.168.1.76: bytes=32 time<1ms TTL=128
Reply from 192.168.1.76: bytes=32 time<1ms TTL=128
Reply from 192.168.1.76: bytes=32 time=1ms TTL=128
Reply from 192.168.1.76: bytes=32 time=1ms TTL=128

The machine is on the network and accessible in every respect. Why the enumshares works for the one but fails for the other is a mystery to me.
 
Oct 29, 2008
88
0
Same here. enumservers returns no servers, enumshares says it can't find it. Here's me switching to a share and then enumshares telling me it can't even find the server it has as the current directory.

231G C:\Users\jbelli# \\engineering\downloads\

140G \\engineering\downloads# enumshares \\engineering
TCC: (Sys) The format of the specified share name is invalid.
"\\engineering"

140G \\engineering\downloads#
 
Aug 28, 2008
111
3
Same here. enumservers returns no servers, enumshares says it can't find it. Here's me switching to a share and then enumshares telling me it can't even find the server it has as the current directory.

231G C:\Users\jbelli# \\engineering\downloads\

140G \\engineering\downloads# enumshares \\engineering
TCC: (Sys) The format of the specified share name is invalid.
"\\engineering"

140G \\engineering\downloads#

Still broken here for me on multiple machines. Some support or a fix would be nice.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,233
78
Albuquerque, NM
prospero.unm.edu
You may need to log on to the target machine before ENUMSHARES will work.

Rex: Here's a feature suggestion I truly don't care about, for a command ditto:

Add options /L:user and /LP:password to ENUMSHARES. If both are specified, map \\target\IPC$ before enumerating shares and unmap it afterwords. If /L:user is specified but the password is '*' or missing, prompt the user for a password, then proceed as above.
 
Aug 28, 2008
111
3
You may need to log on to the target machine before ENUMSHARES will work.

Rex: Here's a feature suggestion I truly don't care about, for a command ditto:

Add options /L:user and /LP:password to ENUMSHARES. If both are specified, map \\target\IPC$ before enumerating shares and unmap it afterwords. If /L:user is specified but the password is '*' or missing, prompt the user for a password, then proceed as above.

For the record, repeating the test right now, I am logged on to both of the same two machines using the same account name. My main machine (Ancalagon) is even connected to network shares hosted by the other machine (Tirion). And yet when I ask TakeCommand to enumerate shares, it gives me the same error message. I'm as logged on as I know how to be.
 
Aug 28, 2008
111
3
I'd be trying to figure out how the two machings differ (OS, services, ...) and whether that matters.

Both running Windows 10 x64 Pro with all the latest updates. As to services, all the networking is configured the same. I'm not sure which other services might be relevant. Any suggestions?
 
May 20, 2008
10,674
83
Syracuse, NY, USA
Both running Windows 10 x64 Pro with all the latest updates. As to services, all the networking is configured the same. I'm not sure which other services might be relevant. Any suggestions?
No specific suggestions. You can get easy-to-compare (?) lists of the running services on each machine with this command.

Code:
wmiquery /a . "Select DisplayName from Win32_service where Started='True'" | sort
 
May 20, 2008
10,674
83
Syracuse, NY, USA
Try this. It's quite similar to "ENUMSHARES /A". By example ...

Code:
d:\tc26> net view /all \\zz
Shared resources at \\zz



Share name  Type   Used as  Comment

-------------------------------------------------------------------------------
ADMIN$      Disk            Remote Admin
C$          Disk            Default share
E$          Disk            Default share
F$          Disk            Default share
G$          Disk            Default share
H$          Disk            Default share
HP$         Print           HP LaserJet 1020
I$          Disk            Default share
IPC$        IPC             Remote IPC
J$          Disk            Default share
K$          Disk            Default share
L$          Disk            Default share
P$          Disk            Default share
print$      Disk            Printer Drivers
S$          Disk            Default share
T$          Disk            Default share
U$          Disk            Default share
Users       Disk
V$          Disk            Default share
The command completed successfully.
 
May 20, 2008
10,674
83
Syracuse, NY, USA
Funny! I just saw this:

Code:
[ATTACH type="full"]2996[/ATTACH]
1595080618953.png
 
Aug 28, 2008
111
3
The new view command (thanks for that tip, vefatica!) works correctly and lists all the shares available. I've generated lists of services as suggested, and while there are differences none of them stand out to me as problematic. All the network services are the same, for example. Any suggestions as to what I should be seeking in that list?