Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Let's say I am Admin on a server named "Server1" and a share exists using the following 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

2 Answers 2

up vote 11 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

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.