File Sharing - Turn On or Off

ByLine
How to Turn File Sharing On or Off in Vista
Synopsis
This will show you how to turn file sharing on or off for all people on your network to be able to access the files and printers that you have set to Share on your computer.
How to Turn File Sharing On or Off in Vista

information   Information
This will show you how to turn file sharing on or off for all people on your network to be able to access the files and printers that you have set to Share on your computer.
warning   Warning
Check the Network Location Type settings.
  • If your network location type is set to Private (Home or Work), then file sharing is turned on by default.
  • If your network location type is set to Public, then file sharing is turned off by default.





STEP ONE
Network Connection Properties

NOTE: This is your connection properties for your network adapter device.
1. Open the Control Panel (Classic View).​
2. Click on the Networking and Sharing Center icon.​
3. Click on Manage network connections in the upper left corner.​
4. Right click on the Network Connection you want to share the Public folder with, and click on Properties.​
5. Click on Continue in the UAC prompt.​
6. Check File and Printer Sharing for Microsoft Networks and click on OK. (See screenshot below)​
NOTE: This is checked by default. This must be checked to be able to turn on file sharing in STEP TWO below.​
Network_Connection_Properties.jpg





STEP TWO
Turn File Sharing On or Off

1. Open the Control Panel (Classic view).​
A) Click on the Network and Sharing Center icon.​
B) Go to step 3.​

OR
2. Right click on the taskbar Network system tray icon.​
A) Click on Network and Sharing Center.​

3. Click on the down arrow to the right of File sharing to expand it. (See screenshot below)​
NS_Center.jpg

4. To Turn On File Sharing
NOTE: With file sharing on, all people on your network will have access to the files and printers that you have set to Share on your computer.​
A) Select (dot) Turn on file sharing. (See screenshot below step 7)​
B) Go to step 6.​

5. To Turn Off File Sharing
NOTE: With file sharing off, all people on your network will not be able to access the files and printers that you have set to Share on your computer.​
A) Select (dot) Turn off file sharing. (See screenshot below step 7)​

6. Click on the Apply button.​
7. If prompted, click on Continue in the UAC prompt.​
File_Sharing.jpg





STEP THREE
Enable Simple File Sharing

That's it,
Shawn


 
Last edited:
Shawn Brink

Comments

Hello Giksy,

Sorry it took a bit to get back to you, but I have been doing some research on this. Are you using another firewall other than Windows Firewall? If so, then this may be the issue. If you do, keep Password protected sharing turned on, and see below.



Here are some additional considerations:
  • Firewall software blocks network sharing by default for security. To use file sharing or printer sharing in Windows, you must ensure that your firewall software is configured to allow the appropriate networking protocols to communicate. Consult the documentation that came with your firewall software.
  • Turning on printer sharing automatically turns on file sharing, because printer sharing uses the same protocols as file sharing, and requires the same Windows Firewall rules to be enabled. However, the reverse is not true: turning on file sharing will not automatically turn on printer sharing.
Since you have Vista Ultimate, you might also try disabling file sharing through Group Policy to see if that helps.

Hope this helps some for now.
 
:( it din`t work.
anyway thank you again.
and yes i`m using another firewall than vista`s. and that is comodo firewall
 
No problem. You should be fine though as long as you have the Password protected sharing option turned on.
 
hi,

is there any command line parametr to disable file sharing as i need to do it for many number of computers....

regards,
sudhir
 
NET STOP SERVER

That stops the (SMB) server service which will prevent the machine from sharing files (and printers) until the service is restarted.

However, if you reboot, the service will restart again because by default it's set to start automatically. To disable auto-startup, you could use this:

sc config LanmanServer start= auto

You'll need to do it elevated though.
 
What exactly is not working for you? What errors do you see, if any?

If you stop (and disable) the Server service, I can guarantee nobody will be able to access shares on that box. In fact, that's the best way to stop sharing.

I made an obvious mistake with the SC command though. To disable the service, use this syntax:

sc config LanmanServer start= disabled

(Note "disabled", not "auto" as I previously wrote.)
 
hi,
the above command which you have mentioned is not working below is the screen shot


i want the uncheck the check box file and printer sharing for network in the properties of network.
 

Attachments

You didn't leave a space after the equals (=) sign. That's why it's bombing out.


sc config LanmanServer start= disabled


(Note the space after start= )


If you cut 'n' paste my command directly from here, it'll work. The effect is the same as changing the startup type to "disabled" for the Server service in the services.msc applet.
 
thanks that command is working now, it has disabled the server services. but the check box of file and printer sharing for network is still showing checked. what should i do for this...
 
Nothing. That's just the binding. Remember your goal is to stop resource sharing, and not specifically to unbind (an otherwise active) Server service from the interface.

There are command-line methods for altering bindings too, but I doubt that's what you're after.
 
Top