New
#1
Are Windows Updates resetting my Advanced Sharing Settings?
For work purposes, I have the following settings in Advanced Sharing Setting
I am having a problem with Windows continually resetting some of these settings, but there are a couple of peculiarities. Sometimes its just one setting, for example, just network discovery gets turned off, or just password protection gets turned on. Sometimes, its multiple changes - both of the above or one of them and file and printer sharing gets turned off. Sometime, it all three. I have been keeping a diary of when this happens, and it appears to always be after a Windows update, although it does not happen after every Windows update.. Has anyone else noticed this? If so, does anyone have any clues as to how I can stop this from happening?Private > Network Discovery - ON (automatic setup box checked)
> File and Printer Sharing - ON
Guest/Public > Network Discovery - ON (automatic setup box checked)
> File and Printer Sharing - ON
All Networks > Public folder sharing - ON
> File sharing connections - 128 bit encryption
> Password protected sharing - OFF
This is a real nuisance. Our whole system at work relies on five computers and two laptop kiosks being reliably networked together, and this resetting of the network, while its a relatively easy fix, still disrupts the workflow and causes downtime.
Now I have managed to make a script that the staff can run if they encounter problems. The script invokes..
netsh advfirewall firewall set rule group=”Network Discovery” new enable=Yes
and
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
Which will turn on the two specified settings, but I cannot find a way to turn off password-protected sharing from the command line. I tried netsh advfirewall firewall set rule group="Password-Protected Sharing" new enable=No but that didn't work. It returned No rules match the specified criteria.
There is a "reg add" command I found that is claimed to work, but I am wary of the idea of monkeying with the registry via a script. Too much can go wrong. Also, the reg add fix requires a restart.
Does anyone know of another way to turn off password protection from the command line?