Windows 10 makes it easy for the users to configure Windows Firewall by using pre-defined configurations of Windows Firewall. By default, there are three network types on which Windows Firewall configurations are used, public, private and domain.
Windows gives users an option to select a network type when a new network is connected to the computer. Windows will set the Windows Firewall rules according to the network type selected. Lets first know more about each network type.
Quick Summary
Network Types
Public Network
A public network is the default network type. If no network type is selected, Windows will configure Windows Firewall using the Public network type rules. In public network, Windows Firewall rules will be the most restrictive. The firewall will block most of the apps from connecting from the Internet and disabling some features like file and printer sharing, network discovery and automatic setup of network devices etc.
You should use this type of network when you have only one computer and do not want to communicate with any other network device.
Private Network
The private network can be a home network or work network. This type of network will enable most networking features of Windows 10 like file sharing, network device setup, network discovery etc.
Use this network type if you trust the network you are connecting to.
Domain Network
The domain network is automatically detected when your computer is a member of Active Directory domain network. Windows should automatically detect this type of network and configure Windows Firewall accordingly. This type of network gives more control to the network administrator and the admin can apply different network security configurations using Active Directory group policies.
In this article, we will be more interested in changing the network type from public to private and vice versa as the domain network is automatically detected by Windows 10 and we don’t need to change anything.
What is the current network type of your computer?
Before going through the ways to change network type in Windows 10, we need to see what is the current network type of the connected network. To check the current network type settings, follow the steps below:
- Go to Control Panel –> Network and Internet –> View Network status and tasks
-
You will see the network type under each connected network
Ways to change network types in Windows 10
Let’s go through a few methods to change the network type in Windows 10.
1- Using Windows Settings
To change the network type using Windows Control Panel settings, follow the steps below:
- Go to Control Panel –> Network and Internet –> HomeGroup
- Click on Change Network Location link.
- This will open a charms dialog asking you “Do you want to allow your PC to be discoverable by other PCs and devices on this network”.
- Press the Yes button if you want your network to be set to Home or Work and No button if you want to be in public network.
You can configure each type of these networks in more detail by clicking on the link “Change advanced sharing settings…”.
2- Setting network type using Windows Registry
If you are an advanced user and are comfortable with editing Windows Registry, this method will be easier for you to change the network type especially when you want it to be done on multiple PCs using just a single registry file.
- Go to Run –> regedit
- Go to the following key:
HKEY_LOCAL_MACHINE –> SOFTWARE –> Microsoft –> Windows NT –> CurrentVersion –> NetworkList –> Profiles - Under the Profiles key, you will find some sub-keys with different GUIDs. This corresponds to the no. of network cards you’re using with your computer.
- Select each sub-key of the Profiles and look for the ProfileName key in the right hand pane. This will give you the name of the network so that you can easily recognize which network you want to change.
-
After identifying the right sub-key, you can change the Category DWORD value in the right hand pane to change the network type of that particular network.
Value data can be 0 for Public network, 1 for Private network and 2 for Domain network.
3- Change network type using Local Security Policy
- Go to Run –> secpol.msc
- Select Network List Manager Policies. This will list all the networks in the right hand pane.
- Double click your desired network, go to Network Location tab.
- Change the Network location type to either Not configured, private or public.
-
If you want to do this for all the connected networks, you can double click All Networks instead of your desired network.
4- Setting network type using PowerShell
Open PowerShell with administrative privileges
-
Run the following command:
Get-NetConnectionProfile -
See the network name you want to change its type and run the following command:
Set-NetConnectionProfile -Name “ITT” -NetworkCategory Public
Where ITT is the name of your network and you can change the -NetworkCategory switch value to Public or Private.
This will change the network type immediately.
Must Read Articles:
- Unable to allow the editing of networking components VPN Settings Error
- Fix Limited Or No Connectivity (No Internet Access) In Windows 10
- 2 Ways To Find All Saved Wifi Passwords In Windows 10
- 5 Ways To Automatically Turn Off WiFi When Ethernet LAN Cable Is Connected
- 3 Ways To Disable Automatic Driver Updates In Windows 10
Hi Thanks, Powershell solved the problem. After trying numerous ideas that are only applicable to that win 10 version and not mine on the net. It is hard to believe how hard Microsoft have made this, as I am running the latest Win 10 Home latest version updates. 10 March 2018.
lifetime Windows user until two years ago when due to work had to switch to macOS… Came back to Win 10 for a home project.. I’ve no idea how I managed to keep my sanity for all these years before going mac….
Great article, but absolutely useless if I can’t print it out and take it with me.
Powershell worked, good work!
secpol.msc did the trick with OpenVPN public network. Thank you a lot.
Mega Kudos, the secpol.msc way worked for me 🙂 Thanks a million
Excellent and easy…thank you
Thanks for this. My home computer was, as you said defaulted to “Public network” and “non-discoverable.”
Same here, nothing worked.
Not one of them worked for me
The links “change network location” does not show up on my two Windows 10 laptops. This same information is all over the Internet.
Same here