Operating System - Microsoft
1748181 Members
3751 Online
108759 Solutions
New Discussion юеВ

Command line Tool to Display Details of a Share and its Actual Path?

 
Alzhy
Honored Contributor

Command line Tool to Display Details of a Share and its Actual Path?

Is there a resource kit tool or some utility that can display a server's share and its its actual path (Drive and directory path)?

We normally use srvrmgr or domain manager or comupter manageement (GUI) to do this... and we need a command line interface...

Thanks!
Hakuna Matata.
4 REPLIES 4
Igor Karasik
Honored Contributor

Re: Command line Tool to Display Details of a Share and its Actual Path?

Nelson,
Try:
net share

It is built-in windows command
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Command line Tool to Display Details of a Share and its Actual Path?

More details on:

net /?
Vibhor Kumar Agarwal
Alzhy
Honored Contributor

Re: Command line Tool to Display Details of a Share and its Actual Path?

Thanks Igor. But what if I do not have access to a particular server that I want to find out what a share corresponds to an actual path?

I was hoping:

NET SHARE \\SOMESRVR

would work but it seems the command needs to be done locally on the local server I want to display all the shares.

I recall there was a resource kit tool that did this, I just cannot remember the name. It had the syntax:

C:\> SRVHOW \\SOMESRVR

Shares ar \\SOMESRVR:
Share Path Comment
------- --------- ----------
REPORT$ Z:\REGION1\RPTS Region 1 Reports




Hakuna Matata.
Igor Karasik
Honored Contributor

Re: Command line Tool to Display Details of a Share and its Actual Path?

Nelson,
I don't know about SRVHOW , but you can use great utility PSEXEC from sysinternals
http://www.sysinternals.com/Utilities/PsExec.html
Run:
psexec \\servername net share