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

x
?
Solved

Script to stop the C$ and ADMIN$ shares that I can run whenever I want or at startup.

Posted on 2005-03-28
4
Medium Priority
?
738 Views
Last Modified: 2008-03-10
Is there a way to write a simple script (.bat file) that I can either run when desired or add to my Startup folder, that will stop sharing the C$ and ADMIN$ shares? From what I know permanently disabling them is impossible without causing problems or interfering with other shares that I DO want to use.

Thanks,
Andrew
0
Comment
Question by:andrew82net
  • 4
4 Comments
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 13646653
Sure...

net share C$ /delete

Put it in a batch file and away you go..

FE
0
 
LVL 40

Accepted Solution

by:
Fatal_Exception earned 2000 total points
ID: 13646699
In other words..  

=====copy start-===
net share c$ /delete
net share Admin$ /delete

Pause
=====stop=======



0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 13646715
Also, in case you need more on Hidden Shares, here is an MS article for you:

How to create and delete hidden or administrative shares on client computers

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314984&sd=tech
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 13648177
Thanks!  

FE
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question