Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

Is there anyway to print out file shares for a network drive?

I need to print out the shares that are on a network drive so that when I replace the server, which is a windows 2008 server, connected to a san. I can then setup the shares again once the new server is backup.
Is there any freeware utility out there to do this or can I do it from windows?
0
vmich
Asked:
vmich
  • 4
  • 2
1 Solution
 
SStoryCommented:
From the command prompt:

net use
0
 
SStoryCommented:
Maybe just as well, go to Computer Management,
in the Shares folder, click Shares, then take s screenshot.
0
 
SStoryCommented:
If you mean all shares and all perms, here is a script on that:
http://www.winvistatips.com/script-list-shares-permissions-t760040.html
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
vmichAuthor Commented:
What is the option to use with net use to display all the share, including the shares in the sub folders?
0
 
SStoryCommented:
I'm not sure what you mean? A share is just a share.  Are you meaning, list a share and then list all subfolders of that share?  

You can also do this from powershell
http://technet.microsoft.com/en-us/library/ee177003.aspx
gwmi -class Win32_Share

OK. I think if you are on the local server you'd do the following:
net share

That will list shares and file paths.
Output that to a text file and make a quick and dirty batch file.
Example:

ImageStore   E:\ImageStore                  
Accounting    E:\Accounting

Make that be:
dir /s E:\ImageStore >list.txt
dir /s E:\Accounting >>list.txt

etc.

This will build a list.txt file that will have all of the subdirectories of those shares.
0
 
David Johnson, CD, MVPOwnerCommented:
no points:  net use will only show shares that are being used by a client
net share from a server will list out all of the shares.  Oops was mentioned above
0
 
vmichAuthor Commented:
solved
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now