Windows Batch File to locate shares on servers and write UNC paths into a text file.
Not to use Powershell.
Only to use native Windows OS functionality
Must use Net View to list shares on server.
Details within attached file.
For the past 7 years I have done extensive Batch and CMD programming, gathering similar type of information that you require. I also have done extensive VBscript work, as well as Powershell.