How to Change a Network Location from Public to Private on Windows 10/Windows Se…

In this text, we are going to think about the idea of a community profile in Windows, think about what varieties of community profiles are, what they’re used for and the way to change the assigned community profile from Public to Private or vice versa in Windows 10 and Windows Server 2019/2016. This is important if the community location is wrongly detected as Public Network, when it needs to be Private.

Windows community profiles are a part of the Windows Defender Firewall with Advanced Security and permit you to apply completely different firewall guidelines relying on the kind of community the pc is related to. Depending on the profile used on your community connection, different computer systems might or (community discovery settings), use shared community folders and printers.

What is a Network Location (Profile) in Windows?

Network profiles firstly appeared in Vista/Windows Server 2008. In Windows 10 (Windows Server 2016), you possibly can assign one of many following community safety profiles (areas) on your NIC (community interface card), whether or not Ethernet or Wi-Fi:

  • Private or Home community – a profile for a trusted community (house or workplace networks). In such a community, the pc will probably be obtainable for discovery by different units; you possibly can .
  • Public community – a profile for an untrusted community (public Wi-Fi community within the subway, cafe, airport). You don’t belief different units on such a community, your pc will probably be hidden to different community units, nobody will probably be in a position to entry shared community folders and printers on your pc;
  • Domain community – a profile for computer systems which are members of an Active Directory area. Applies robotically after becoming a member of Windows to the AD area. You can apply for this profile.

The Network Location Awareness (NLA) service is utilized by Windows to decide if a community connection is on a Public, Private, or Domain community

As talked about earlier, completely different Windows Firewall guidelines apply to your community connection primarily based on the community profile of your NIC.

In Windows 10, you possibly can verify the present community profile (location) assigned to the community connection within the Settings -> Network & Internet. In my screenshot, you possibly can see that the Open (Public) profile is assigned to the Ethernetzero NIC.

win 10 - network status open for ethernet0 NIC

In the traditional Control Panel, the community sort for energetic community connections is displayed right here: Control Panel -> All Control Panel Items -> Network and Sharing Center. But you can not change the assigned community location from the traditional Control Panel. For instance, in Windows Server 2012 R2 / Windows eight.1, you possibly can solely change the community profile by the PowerShell, registry, or native safety coverage (described under).

public network in windows 10 control panel

How to Set a Network Profile in Windows 10?

The community profile in Windows 10 is chosen by the person the primary time the gadget is related to the brand new community. A immediate seems:

Network 2
Do you need to permit your PC to be discoverable by different PCs and units on this community?
We advocate permitting this on your house and work networks, however not public ones.

Do you want to allow your PC to be discoverable by other PCs and devices on this network? We recommend allowing this on your home and work networks, but not public ones

If you choose “Yes”, the Private profile will probably be assigned to the community, or the Public profile if you choose “No”. The subsequent time you join to the identical LAN or WiFi community, the beforehand chosen profile is robotically assigned.

You can cover “Network Location Wizard” when connecting to a new community by the registry. Just create an empty registry key HKEY_LOCAL_MACHINESystemCurrentControlSetControlNetworkNewNetworkWindowOff. After that, all networks are thought of Public.

You can reset all settings and profiles for saved networks in Windows 10 by choosing Settings -> Network & Internet -> Status -> Network Reset and reboot the pc.

win 10 - reset network

Now once you related to the community, a community discovery request once more seems.

How to Change Windows 10 Network Location from Public to Private?

You can change the community profile from the Windows 10 GUI. If you might be utilizing the brand new Settings panel, go to “Network & Internet” -> “Status” -> “Change connection properties”.

Here you possibly can change the community location profile from Public to Private and vice versa.

network profile change from public to private in windows 10 settings

You can’t change the community profile from the traditional Control Panel in Windows 10.

Also, you can not change the community profile on the domain-joined pc. The Domain profile will all the time be used for a area community connection.

Change Network Types Using PowerShell in Windows 10

On Windows 10/Windows Server 2016/2019, you possibly can handle community connection location from the PowerShell. Run the elevated PowerShell console.

Now use the Get-NetConnectionProfile cmdlet to get a checklist of community adapters on your pc and their related community profiles.

In my instance, there is just one bodily community adapter on a pc with a Public community location sort (within the NetworkCategory worth, you possibly can see the next varieties of community profiles: Public, Private or DomainAuthenticated).

Get-NetConnectionProfile

Let’s attempt to change the assigned community profile for the NIC. We want to get the index assigned to this community card. In this instance, InterfaceIndex is eight.

Name : Network 2
InterfaceAlias : Ethernetzero
InterfaceIndex : eight
NetworkCategory : Public
IPv4Connectivity : Internet
IPv6Connectivity : NoSite visitors

After you get the community adapter index, you possibly can change the community sort to Private:

Set-NetConnectionProfile -InterfaceIndex eight -NetworkCategory Private

Check that the community profile has modified:

Get-NetConnectionProfile -InterfaceIndex 19

Set-NetConnectionProfile NetworkCategory - powershell

The new firewall guidelines will probably be utilized to the interface in accordance to the assigned community profile with out rebooting.

You also can change the community profile for all community adapters of the pc without delay:

Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private

Setting Network Type Using Windows Registry

The community sort can be modified from the Registry Editor. To do that, run regedit.exe and go to the next key: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles. This registry key accommodates profiles of all community connections.

You can discover the mandatory community profile by its identify listed (from the Network and Sharing Center) within the ProfileName registry parameter.

network name in network and sharing center

The community sort is specified within the Category parameter. The following values can be found:

  • zero — Public Network
  • 1 — Private Network
  • 2 — Domain Network

set private or public network location via registry

Change the important thing worth to the one you want and restart your pc.

Changing Network Location Type Using Security Policy

Another approach to change the community location sort is to use the Local Security Policy Editor. Run secpol.msc snap-in and go to the part Network List Manager Policies. On the precise, discover your community by its identify as it’s displayed within the Network and Sharing Center. Open the community properties and go to the Network Location tab, then change the community sort from Not configured  to Private and save the adjustments. To forestall customers from altering the community profile, choose the choice “User can’t change location”.

change network location using security policy

Note. If a server or a pc is joined to the AD area, you can not change the community sort. After the reboot, it can robotically change again to the Domain Network.

Check Also

KVM: How to Expand or Shrink a Virtual Machine Disk Size?

In this text we’ll speak about how to resize KVM digital machine disks for standard …

Leave a Reply

Your email address will not be published. Required fields are marked *