Force turn on file and printer sharing

AllSolutions

I am trying to set up File sharing on a friend's machine who is using Windows 7 64 bit Ultimate edition. In advanced sharing settings, I select the radio button "Turn on file and printer sharing" and click on Save Changes. But when I come back to the screen, it reverts back to off.

I searched on the net and found many people facing similar issues, and I tried many steps like turning off WIndows firewall, netsh command, checking predefined rules in Firewall, starting the Server service and HomeGroup Listener service, verifying all required services are started, group policy editor, running the troubleshooter, etc, but nothing seems to be working in my case.

I am not able to see this computer in the Network Places, even though Network Discovery is on. The computer is connected to internet using a wireless connection. The HomeGroup troubleshooter says "Some Homegroup problems are network related" but the network troubleshooter does not find any problems.

Is there no tool to forcibly turn this setting on?

Will really appreciate any help on this. Already spent a lot of hours on this simple yet nagging issue.

Thanks.

EDIT 1:

I remember having turned off SMB through DriverPack online tool, while installing the drivers. Could that be the reason? If so, how can I reenable it without having to reinstall OS?

AllSolutions

My issue finally solved after several hours, without requiring to reinstall OS or go back to a previous restore point.

The sequence of commands which did it are given below. I ran them in Windows PowerShell (right click->Run as administrator)

  1. Enable SMBv1 on the SMB server:

    Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 1 -Force

  2. Enable SMBv2 and SMBv3 on the SMB server:

    Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 1 -Force

  3. Restart computer

  4. Enable SMBv1 on the SMB client:

    a) sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi

    b) sc.exe config mrxsmb10 start= auto

  5. Enable SMBv2 and SMBv3 on the SMB client:

    a) sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi

    b) sc.exe config mrxsmb20 start= auto

  6. Restart computer

All the above commands are given in the Microsoft KB 2696547 article: https://support.microsoft.com/en-ie/help/2696547/how-to-enable-and-disable-smbv1-smbv2-and-smbv3-in-windows-and-windows-server. I had tried these commands earlier too, but missed to run the commands 4 and 5 above for the SMB client. Now after running all the commands, the issue is resolved!

Hope someone finds it helpful, and saves a few hours of time and endless frustration.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

File and Printer Sharing Status

From Dev

How can I turn on File and Printer sharing, and the Firewall from the Windows command line

From Dev

Manage file and printer sharing using a script

From Dev

Ping to Windows 10 not working if "file and printer sharing" is turned off?

From Dev

Sharing a printer to a different subnet

From Dev

Cannot turn on "Network Discovery and File Sharing" when Windows Firewall is enabled

From Dev

Force a printer into an error state

From Dev

stop sharing printer win 7

From Dev

Sharing printer with remote Windows system

From Dev

Will turning off File and Printer sharing work as a basic defence against WannaCry network transmission?

From Dev

How to activate File and printer sharing on a French Windows system from commande line?

From Dev

Use CUPS own driver when sharing a printer

From Dev

Cannot turn on sharing on ubuntu 18.04

From Dev

Turn off Internet Connection Sharing in Windows 10

From Dev

Printing a specified BMP file to printer

From Dev

Printing a file and configure printer settings

From Dev

How to remove Print to File printer?

From Dev

Installing a printer without a ppd file

From Dev

Printing a file and configure printer settings

From Dev

Printing a specified BMP file to printer

From Dev

disable iTunes file sharing

From Dev

TCP File Sharing

From Dev

OpenTok and File Sharing

From Dev

More Explanation on File Sharing

From Dev

Disable file sharing with batch

From Dev

Disable file sharing in Skype

From Dev

Large file sharing with JIRA

From Dev

Sharing file descriptors

From Dev

Virtualbox file sharing is not working