As on previous versions of Windows, it's still possible on Windows 10 to switch to a private network by going through the "Network" section of the file explorer.
This method is practical, because the path is strictly identical since Windows 7.
To get started, open file explorer.
Then, go to the "Network" section displayed on the left and an error message will appear telling you that :
Network discovery is turn off. Network computers and devices are not visible. Please turn on network discovery in the Network and Sharing Center.
Click OK to hide this error.
Then, a yellow banner (with the same message) will appear. Click on it, then on : Turn on network discovery and file sharing.
A "Network discovery and file sharing" window with the "Do you want to turn on network discovery and file sharing for all public networks?" question.
You can answer this question :
Click "No, make the network that I am connected to a private network" to change only the network location type of the network you're connected to to "Private network".
As expected, you can now see :
To check if the type of network location has been changed to "Private network", right-click on the "Network" icon present in the taskbar, then click on : Open Network & Internet settings.
As expected, the type of network location used is now : Private network.
As on Windows 8 and 8.1, you will have the option to quickly change the type of network location to use (via the same PowerShell commands as before).
To get started, search for "powershell" via the Windows 10 start menu and click : Run as administrator.
To get information about the network you are connected to, type this :
PowerShell
Get-NetConnectionProfile
As you can see, the name of the network chosen by Windows 10 is : Network.
You can also see that the type of network location used at the moment is "Public". Which means it's a public network.
Plain Text
Name : Network InterfaceAlias : Ethernet0 InterfaceIndex : 8 NetworkCategory : Public IPv4Connectivity : Internet IPv6Connectivity : LocalNetwork
To change the network location type of this network, target it by its name and specify the "Private" value for the "NetworkCategory" attribute to use a private network.
PowerShell
Set-NetConnectionProfile -Name "Network" -NetworkCategory Private
Check that the change has been taken into account.
PowerShell
Get-NetConnectionProfile
As expected, the type of network location used is now "Private".
Plain Text
Name : Network InterfaceAlias : Ethernet0 InterfaceIndex : 8 NetworkCategory : Private IPv4Connectivity : Internet IPv6Connectivity : LocalNetwork
To reuse a public network, target it by its name and specify the "Public" value for the "NetworkCategory" attribute.
PowerShell
Set-NetConnectionProfile -Name "Network" -NetworkCategory Public
Now, it's a public network.
PowerShell
Get-NetConnectionProfile
Plain Text
Name : Network InterfaceAlias : Ethernet0 InterfaceIndex : 8 NetworkCategory : Public IPv4Connectivity : Internet IPv6Connectivity : LocalNetwork
Finally, you can also go through the Windows 10 registry.
To get started, search for the "regedit" program and launch the registry editor.
The Registry Editor appears.
Go to the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles" registry key.
In this "Profiles" folder, you will find folders corresponding to the networks to which you have already connected at least once.
To do this, base yourself on the name displayed for the "ProfileName" data present in each folder.
In our case, it's the network named "Network" by Windows 10.
To change the type of network location of the desired network, change the value of the "Category" data item by double-clicking on it.
For the value of this data, you have the choice between :
The value of the "Category" data item has been modified.
You can close the Registry Editor.
To check if you have entered the correct value, you can check what type of network location Windows 10 has included by right-clicking on the "Network" icon located in the taskbar, then on : Open Network & Internet settings.
Windows 3/1/2022
Windows 7/10/2023
Windows 12/4/2023
Windows 9/26/2022
Pinned content
InformatiWeb Pro
Contact
® InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
No comment