Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Net Shares

Status
Not open for further replies.

adiMasher

Programmer
Aug 31, 2001
144
US
I'm not a network admin so I don't know all the in's and outs of this stuff.... hopefully you guys know more tricks and stuff than the windows docs provide.

So here's what I'm looking to do. When I give the command "net share" it tells me c$, temp & so forth but I can't issue that command to look at what is all being shared on the other computers in the network.... yes I can use "net view" but that only lists the shared folders, and won't say if c$ is available.

Does anyone know how I can query a remote computer if it has c$ or more basically if it has network sharing turned on....

Thanks.
Martin
 
The C$ (and any other share named with a "$" at the end) are hidden shares, that are only used by administrators. They are there by default on win2k machines, but some users may have removed them.
 
yep. By defo all Win2000 installs have c$ shared, this is hidden to other computers so you can't really check to see if they exist on another pc, you'll have to trust that in most cases they do.

If you want to access another pc share you use:

net use Z: \\unc_path_to_pc\share_name

where Z is the drive you want to map the share to...
HTH

Tels Win2000 Network Administrator
 
This scrypt will help you to obtain the list of computers in your network neighborhood that has c$.
At first it gets the list of computers, than it tryes to map z: to c$ of everyone. If successfully it unmaps and add the name of computer to the list stored in Shares.txt
I have tested it in WinNT4 domain.

rem --------ShareList.cmd-------------
rem ----autor Alexander Beetle---------


net view > list.txt
echo They all have c$ > Shares.txt
echo **************** >> Shares.txt

for /F %%c in (list.txt) do net use Z: %%c\c$ | find "successfully" && net use Z: /delete && echo %%c >> Shares.txt

Del /Q list.txt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top