Share via


Registry edit for Disabling Password Protected Sharing

Question

Tuesday, March 26, 2019 8:07 PM

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa /v everyoneincludesanonymous /t REG_DWORD /d 0x1 /f

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters /v restrictnullsessaccess /t REG_DWORD /d 0 /f

I am attempting to enable the radio button: "Turn off password protected sharing" via these registry commands (in addition to restarting), and my research led me to these two registry keys.

Seems like it worked at one point, but perhaps a recent Windows 10 Update changed things?

Those two registry adds successfully work (checked in regedit), but the "Turn on password protected sharing" is still checked when it should be the opposite. Any ideas as to what could be causing this?

All replies (4)

Wednesday, March 27, 2019 6:31 AM

Hello,

Thank you for posting in this forum.

Many people have encountered this situation. People in this post share some solutions, please check if these methods are useful to you.

Can't turn off password protected sharing

Best Regards,

Leon

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Wednesday, March 27, 2019 3:36 PM

So I've seen that thread prior, and those findings did not fix the issue. Also, those answers are 8+ years old, and are geared towards Windows 7.

The computer is not connected to the internet, domain, or Homegroup.

There is no guest account either


Thursday, March 28, 2019 4:47 AM

Hello SNguyen2,

Would you mind telling me why use the registry to change this option? Is it because the GUI interface does not save your settings?

Many people in this article: [How To] Turn Off Password Protected Sharing In Windows 10 have encountered the same issue. In the comments below, Kapil Arya and Kissache have perfected the solution. Please try this solution first to see if it is useful to you. (There are also updated methods in the comments, please also try those methods if the solution does not work.)

I did experiments on the 1803 and 1809 machines, and even using the methods in the article, changing the settings by modifying the registry key values ​​is not successful. I can only change the settings via the GUI (this will save my settings).

Also, if your ultimate goal is to access the share without entering a username and password, then use this method: 4 Ways to Enable and Disable Built-in Guest on Windows 10.

Since the web sites are not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

Best Regards,

Leon

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Monday, April 1, 2019 9:43 AM

Hi,

Just checking in to see if the information provided was helpful. 
Please let us know if you would like further assistance.

Best Regards,
Leon

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].