Posted June 14, 20186 yr 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
June 15, 20186 yr 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! Â
June 19, 20186 yr Author 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