Jump to content

Recommended Posts

Posted

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

Posted

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!

 

Posted

Hi Michael,

So I have been playing with this and can't seem to get it to work. Can't say I know much about scripting so I may be doing something wrong.

Thanks Again,

Pete

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...