How to Enumerate Hidden Shares
Keywords: wntresources hidden shares
Question:
I am referring to a share name that ends with a $ I don't know how you pull the share list.In server manager, if you click Computer, Shared Directories they show up.
Also, rmtshare.exe from the resource kit displays those shares. wntResources does not.
Answer:
You could use the command wntShareListfrom the Win32 Network Extender to get a list of hidden shares....AddExtender("WWWNT34i.DLL") list=wntShareList("\\SERVER", 16, 0) AskItemList("List of hidden shares",list, @TAB, @UNSORTED, @SINGLE) exitOR Maybe even do something like:
runwait("cmd.exe","/c rmtshare.exe > c:\xxx.txt")then parse the resulting xxx.txt file
Article ID: W13544Filename: Listing Hidden Shares.txt