mobot
asked on
List Windows Shares from the cmd line?
I'm asking for the cmd that will list the share name and the folder path and the description?
I've used 'net view \\servername' and it kicks out the Share name and Type. I need the folder path and the description too.
Windows Server 2003 SP2
I've used 'net view \\servername' and it kicks out the Share name and Type. I need the folder path and the description too.
Windows Server 2003 SP2
Try NET USE (no parameters). That gives me what I need.
Invoke-Command -ComputerName xxxxx -ScriptBlock { gwmi -q "SELECT * FROM Win32_Share WHERE
Name != 'ADMIN$' AND Name != 'IPC$'" }"
sub computername at xxxx
But I used powershell, not sure if it will work for you.
Name != 'ADMIN$' AND Name != 'IPC$'" }"
sub computername at xxxx
But I used powershell, not sure if it will work for you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can get from powershell:
Open Powershell cmd by Start -> Run -> Powershell
Then in powershell window type:
Open Powershell cmd by Start -> Run -> Powershell
Then in powershell window type:
Get-WmiObject -Class win32_share
You can either
... at the server: net share which shows the shares for that server
... at the client: rmtshare \\servername
Here's one link you can get rmtshare at: Windows 2000 Resource Kit
... at the server: net share which shows the shares for that server
... at the client: rmtshare \\servername
Here's one link you can get rmtshare at: Windows 2000 Resource Kit
Hi,
There are many ways to do this. I like the GUI method: type fsmgmt.msc from run or command shell.
All other methods have already been mentioned above :).
Mike
There are many ways to do this. I like the GUI method: type fsmgmt.msc from run or command shell.
All other methods have already been mentioned above :).
Mike
ASKER
This is what worked for me. Sorry for the delay in getting back to everyone. And thanks to all for your suggestions.
wmic.exe path win32_share get Caption,Name,Path
wmic.exe path win32_share get Caption,Name,Path