Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's say I am Admin on a server named "Server1" and a share exists using the UNC path \\\Server1\Share1.

If I remote to Server 1 and log in as Admin, how do I find the physical drive location without scanning millions of folders given that a share folder could be defined ANYWHERE.

share|improve this question
up vote 33 down vote accepted

Open a command prompt window and type net share, then hit Enter.

share|improve this answer
    
Thank you !!!!! – Chad Aug 22 '12 at 19:56

In addition to using net share, you can also use wmic - this allows you to query remote systems (with /node:) and also get only those you're interested in, eg.
wmic /node:Server1 share where name="Share1" get name,path will list only shares named Share1.
You could also use pattern match: find only shares containing temp:
wmic share where 'name like ^"^%temp^%"' get name,path.
Please note those strange looking ^ are carets - cmd escape char - those are used to avoid cmd to expand env. variables. If used from within wmic, they are not needed.
Finally, you could execute this against many machines at once and save list as nicely formatted html table (among other formats):
wmic /node:server1,server2 /output:shares.html share get name,path /format:htable (you could also use a file to specify hosts with wmic /node: @file)


share|improve this answer
1  
neato. I've never heard of this tool before. you got my upvote :) – KenK Aug 22 '12 at 21:44

Windows 7, via Remote Desktop Connection

If that machine has Windows and you can connect to it via Remote Desktop Connection:

Start > right click on Computer > Manage > Computer Management (Local) > System Tools > Shared Folders > Shares

Computer Manage

Computer Management

If you want to stop sharing, right click on one line > Stop Sharing:

enter image description here

share|improve this answer
    
This should also be achievable via remote mmc, to which permissions can be assigned separately from RDP, which might be handy for some (perhaps contrived?) situation. – underscore_d May 24 at 10:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.