Jump to content

Password Protected Sharing


pete_harris

Recommended Posts

Does anyone have or know how to create a script to disable Password Protected Sharing in Windows 10. This has become a real issue for me as every time Microsoft has an update the default is "Turn on password protected sharing" which forces me to do a lot of tweaks.

Thanks in advance,

Pete

Link to comment
Share on other sites

Hello Pete,

on Windows 10 password protected sharing can be disabled by editing the below registry keys

HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\everyoneincludesanonymous
HKLM:\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters\restrictnullsessaccess

would you prefer to use PowerShell to update those setting for you please use the below:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa" -Name "everyoneincludesanonymous" -Value "1"
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters" -Name "restrictnullsessaccess" -Value "0"
exit 0

Hope that helps!

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...