Posts Tagged ‘change network from public to private’

3 Ways to Change Network Location to Public or Private in Windows 10

December 27th, 2016 by Admin

The first time you connect to a network, you’ll be prompted to turn on sharing and connect to devices. Turn on this settings will set your network location to private. A private network makes your computer discoverable to other PCs. If you don’t want to share musics, pictures, videos or even printers with other PCs on the network, you should set the network type to public. In this tutorial we’ll show you 3 ways to change network location to public or private in Windows 10.

network-location-type

Method 1: Change Windows 10 Network Location Using Group Policy

  1. Press the Windows key + R to open the Run box. Type secpol.msc and press Enter.

    secpol

  2. When the Local Security Policy window opens, click Network List Manager Policies in the left pane. Double-click on the name of the current network connection in the right pane.

    network-list-policies

  3. Click the Network Location tab at the top. Under the Location type, you can choose either Private or Public.

    private-public-network-location

  4. Click Apply and then OK to save your change.

Method 2: Change Windows 10 Network Location Using Registry Editor

  1. Press the Windows key + R to open the Run box. Type regedit and press Enter.
  2. In the left pane of Registry Editor, navigate to the key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles
  3. Expand the Profiles key in the left pane. Click on each subkey and have a look if the ProfileName matches the name of your current network connection.

    network-profile-name

  4. If you have found the right subkey, double-click the Category in the right pane and edit the DWORD to the value you want. Public: 0, Private: 1, Domain: 2.

    network-profile-category

  5. Reboot your computer to apply the new network location.

Method 3: Change Windows 10 Network Location Using PowerShell

  1. Open PowerShell in Administrator mode.
  2. Type or paste the following command in the PowerShell and press Enter. It will list the name and properties of your active network connection. In my example, the network name is TLRouter.
    Get-NetConnectionProfile

    get-network-profile

  3. Type the following command and press Enter to change your network location to private. Replace TLRouter with your network name.
    Set-NetConnectionProfile -Name "TLRouter" -NetworkCategory Private

    change-network-location-via-powershell

    If you want to change the network location to public, type this command instead:
    Set-NetConnectionProfile -Name "TLRouter" -NetworkCategory Public