Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have several shares on my Win7 machine. I need them to disappear from the network (and stay gone across reboots), without my having to actually remove the shares (because they need to reappear in a week).

Is there something I can disable/stop on my machine (I'm thinking a service?) that will get this done? There are no network shares I need to keep available to the network (during this time).

share|improve this question
add comment

3 Answers 3

up vote 2 down vote accepted
  1. Go to Network Connections (Windows Key, type "network connections", select "View Network Connections").

  2. Bring up the Properties of your main network connection (probably "Local Area Connection").

  3. Uncheck "File and Printer Sharing for Microsoft Networks". Click OK.

  4. Disable, then Enable the network connection (or reboot).

Now, the shares you have set up on your machine should still stick around. When you want them back on the network, just repeat all the steps (except check the box instead of uncheck). :-)

share|improve this answer
    
You know... if you're not a fan of registry tweaking. :-) –  Chris Dwyer May 20 '10 at 15:30
add comment

if hiding them is not enough you can save the reg key that pertains to shares

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Shares

then delete it then reimport when necessary!

share|improve this answer
add comment

You need to stop Server windows service.

  1. Start Menu / Run / Services.msc
  2. Stop the service and set startup type to Manual.

To restore sharing just start the service and set startup type to Automatic.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.