pete_harris Posted June 14, 2018 Posted June 14, 2018 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
MichaelS Posted June 15, 2018 Posted June 15, 2018 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! Â
pete_harris Posted June 19, 2018 Author Posted June 19, 2018 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now