Change Public Network To Home
Value data can be 0 for public network 1 for private network and 2 for domain network.
Change public network to home. For a private network change advanced sharing settings should have the following settings. The network is the name of your network and you can change the networkcategory switch value to public or private. Doing so will open the set network location wizard in which you can choose one of three different network location options for the selected network home network work network or public network.
If you want to change the network type from private to public just need to type command below instead. You can manually make some changes to ensure that you are not accidentally sharing either too much on a public network or blocking all sharing on a private. Sometimes windows detects a private network as a public one and vice versa.
In this case we ll click the public network link to change a public network to a home network so we click the public network link. Next you can change the network from private to public or from public to private. If you are a powershell guy or creating some sort of script to automate things you can use powershell to change the network location from the public to private with a single line command.
Method 2 use powershell to change network type from public to private. Left click the tiny network icon computer screen symbol in your system tray at bottom right near your clock then a menu pops up. Private networks are basically home and work whereas public networks are anywhere else which you don t trust.
Go to run secpol msc. At the top under network profile change from public to private. Windows shows you the set network location dialog box.
Left click the first network item that comes up near the top of the menu such as network connected or similar. Fix for wired network connections. In the box marked view your active networks click the link that mentions the network type you now have.