Windows 10: Set Network Location to Private or Public in Windows 10

Discus and support Set Network Location to Private or Public in Windows 10 in Windows 10 Tutorials to solve the problem; How to: Set Network Location to Private, Public, or Domain in Windows 10 How to Set Network Location to Private, Public, or Domain in Windows 10... Discussion in 'Windows 10 Tutorials' started by sml156, Aug 30, 2015.

  1. sml156 Win User

    Set Network Location to Private or Public in Windows 10


    How to: Set Network Location to Private, Public, or Domain in Windows 10

    How to Set Network Location to Private, Public, or Domain in Windows 10


    A network location identifies the type of network that a PC is connected to with a network adapter.

    By default, the first time you connect to a new network (wired or wireless), you will be prompted "Do you want to allow your PC to be discoverable by other PCs and devices on this network?" by the network discovery state to the network and automatically sets the appropriate Windows Firewall and security settings for the type of network that you connected to. You can change the network location anytime.

    Public network = By default, the public network location type is assigned to any new networks when they are first connected. A public network is considered to be shared with the world, with no protection between the local computer and any other computer. Therefore, the Windows Firewall rules associated with the public profile are the most restrictive. This blocks the following apps and services from working: PlayTo, file sharing, network discovery, and automatic setup of network printers, TVs, and other devices.

    Private network = A private network location type can be for home or small office networks, or when you know and trust the people and devices on the network. This setting allows your PC to connect to a homegroup and devices on the network, such as printers.

    Domain network = The domain network location type is detected when the local computer is a member of an Active Directory domain, and the local computer can authenticate to a domain controller for that domain through one of its network connections.

    This tutorial will show you how to set the network on your PC to be connected to a domain, public, or private type of location for all users in Windows 10.

    You must be signed in as an administrator to be able to change the network location of a network adapter.



    CONTENTS:
    • Option One: To Change a Network Location in Settings app
    • Option Two: To Change a Network Location in Registry Editor
    • Option Three: To Change a Network Location Local Security Policy
    • Option Four: To Change a Network Location in PowerShell
    • Option Five: To Change Network Location of Current Network Connection in PowerShell
    • Option Six: To Change Network Location of Current Network Connection using a VBS file

    EXAMPLE: Network Location of adapter in "Network and Sharing Center"

    Set Network Location to Private or Public in Windows 10 [​IMG]


    Set Network Location to Private or Public in Windows 10 [​IMG]


    Set Network Location to Private or Public in Windows 10 [​IMG]







    OPTION ONE [/i] To Change a Network Location in Settings app
    1 Do step 2 or step 3 below for how you would like to open Network settings.

    2 Click/tap on your network step 4 below. (see screenshot below)

    Set Network Location to Private or Public in Windows 10 [​IMG]

    3 Open step 4 below.

    4 Do step 5 (Ethernet) or step 6 (Wi-Fi) below for you currently connected network.


    5. To Change Network Location of Ethernet Network
    A) Click/tap on Ethernet on the left side, click/tap on the Ethernet connection (ex: Brink-Router2) on the right side you are currently connected to, and go to step 7 below. (see screenshot below)


    Set Network Location to Private or Public in Windows 10 [​IMG]


    6. To Change Network Location of Wi-Fi Network
    A) Click/tap on Wi-Fi on the left side, click/tap on the wireless network name (ex: Brink-Router2) you are currently connected to, and go to step 7 below. (see screenshot below)


    Set Network Location to Private or Public in Windows 10 [​IMG]

    7 Select (dot) Private or Public for the network location you want for this network connection. (see screenshots below)

    These settings will not be available if your PC currently is set to have a Domain network location.



    Set Network Location to Private or Public in Windows 10 [​IMG]

    Set Network Location to Private or Public in Windows 10 [​IMG]

    8 When finished, you can close Settings if you like.





    OPTION TWO [/i] To Change a Network Location in Registry Editor
    1 Type regedit in the search box (Win+S) on Start or taskbar, and press Enter to open Registry Editor.

    2 If prompted by UAC, click/tap on Yes.

    3 In Registry Editor, navigate to the location below. (see screenshot below)
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles


    Set Network Location to Private or Public in Windows 10 [​IMG]

    4 Double click/tap on the Profiles key in the left pane to expand it. Click/tap on each long GUID number subkey, and look at it's ProfileName string value in the right pane to see if it has the current network name (ex: Network) until found. (see screenshot below)

    Set Network Location to Private or Public in Windows 10 [​IMG]

    5 When you find the correct ProfileName for your network name, double click/tap on the Category DWORD value in the same right pane to modify it. (see screenshot below)

    Set Network Location to Private or Public in Windows 10 [​IMG]

    6 Type in a new data value number for the network location you want, and click/tap on OK. (see screenshot below)
    [table][tr][td]Network Location[/td] [td]Data Value[/td] [/tr] [tr][td]Public[/td] [td]0 (zero)[/td] [/tr] [tr][td]Private[/td] [td]1[/td] [/tr] [tr][td]Domain[/td] [td]2[/td] [/tr] [/table]


    Set Network Location to Private or Public in Windows 10 [​IMG]

    7 When finished, you can now close Registry Editor if you like.

    8 Sometimes you may need to sign out and in of your user account to apply the new network location.





    OPTION THREE [/i] To Change a Network Location Local Security Policy
    This option will override Option One and Option Two above.


    1 Open the Local Security Policy (secpol.msc).

    2 In the left pane, click/tap on Network List Manager Policies. (see screenshot below)

    Set Network Location to Private or Public in Windows 10 [​IMG]

    3 In the right pane of Network List Manager Policies, double click/tap on your network name (ex: Network). (see screenshot above)

    You can click/tap on All Networks if you wanted to apply this to all networks on your PC instead of a single network.


    4 Do step 5 (Not configured), step 6 (Private), or step 7 (Public) below for what you would like to do.


    5. To Allow Network Location to be changed by OPTION ONE and OPTION TWO
    This is the default setting.


    A) Click/tap on the Network Location tab. (see screenshot below)

    The Network Location tab will not be available if your PC currently is set to have a Domain network location.


    B) Under Location type, select (dot) Not configured.

    C) Under User permissions, select (dot) Not configured.

    D) Click/tap on OK, and go to step 8 below.


    Set Network Location to Private or Public in Windows 10 [​IMG]


    6. To Change to a Private Network Location
    A) Click/tap on the Network Location tab. (see screenshot below)

    The Network Location tab will not be available if your PC currently is set to have a Domain network location.


    B) Under Location type, select (dot) Private.

    C) Under User permissions, select (dot) User cannot change location.

    D) Click/tap on OK, and go to step 8 below.


    Set Network Location to Private or Public in Windows 10 [​IMG]


    7. To Change to a Public Network Location
    A) Click/tap on the Network Location tab. (see screenshot below)

    The Network Location tab will not be available if your PC currently is set to have a Domain network location.



    B) Under Location type, select (dot) Public.

    C) Under User permissions, select (dot) User cannot change location.

    D) Click/tap on OK, and go to step 8 below.


    Set Network Location to Private or Public in Windows 10 [​IMG]

    8 You can now close Local Security Policy if you like.





    OPTION FOUR [/i] To Change a Network Location in PowerShell
    Thank you to our member sm156 for pointing out this option.


    1 Open an elevated Windows PowerShell.

    2 Do step 3 (see current location), step 4 (Private), step 5 (Public), step 6 (Domain) below for what you would like to do.


    3. To See your Current Network Location
    A) Copy and paste the command below into the elevated PowerShell, and press Enter. (see screenshot below)
    Get-NetConnectionProfile
    B) Make note of the name of your network. For example: Brink-Router3

    C) Go to step 4 (Private), step 5 (Public), or step 6 (Domain) below for what you would like to set your network location as.


    Set Network Location to Private or Public in Windows 10 [​IMG]


    4. To Set Network Location to Private
    A) Type the command below into the elevated PowerShell, press Enter, and go to step 7 below. (see screenshot below)

    Set-NetConnectionProfile -Name "Brink-Router3" -NetworkCategory Private

    Substitute Brink-Router3 in the command above with your network name from step 3 above instead.


    Set Network Location to Private or Public in Windows 10 [​IMG]

    5. To Set Network Location to Public
    A) Type the command below into the elevated PowerShell, press Enter, and go to step 7 below. (see screenshot below)

    Set-NetConnectionProfile -Name "Brink-Router3" -NetworkCategory Public

    Substitute Brink-Router3 in the command above with your network name from step 3 above instead.


    Set Network Location to Private or Public in Windows 10 [​IMG]

    6. To Set Network Location to Domain
    This requires your PC to be joined to a domain.


    A) Type the command below into the elevated PowerShell, press Enter, and go to step 7 below.

    Set-NetConnectionProfile -Name "Brink-Router3" -NetworkCategory DomainAuthenticated

    Substitute Brink-Router3 in the command above with your network name from step 3 above instead.



    7 When finished, you can now close PowerShell if you like.





    OPTION FIVE [/i] To Change Network Location of Current Network Connection in PowerShell
    1 Open an elevated Windows PowerShell.

    2 Do step 3 (Private), step 4 (Public), or step 5 (Domain) below for what you would like to set the network location of your current network connection.


    3. To Set Network Location of Current Network Connection to Private
    A) Type the command below into the elevated PowerShell, press Enter, and go to step 6 below. (see screenshot below)

    $net = get-netconnectionprofile;Set-NetConnectionProfile -Name $net.Name -NetworkCategory Private


    Set Network Location to Private or Public in Windows 10 [​IMG]


    4. To Set Network Location of Current Network Connection to Public
    A) Type the command below into the elevated PowerShell, press Enter, and go to step 6 below. (see screenshot below)

    $net = get-netconnectionprofile;Set-NetConnectionProfile -Name $net.Name -NetworkCategory Public


    Set Network Location to Private or Public in Windows 10 [​IMG]


    5. To Set Network Location of Current Network Connection to Domain
    This requires your PC to be joined to a domain.


    A) Type the command below into the elevated PowerShell, press Enter, and go to step 6 below.

    $net = get-netconnectionprofile;Set-NetConnectionProfile -Name $net.Name -NetworkCategory DomainAuthenticated
    6 When finished, you can now close PowerShell if you like.





    OPTION SIX [/i] To Change Network Location of Current Network Connection using a VBS file
    1 Do step 2 (Private), step 3 (Public), or step 4 (Domain) below for what you would like to set the network location of your current network connection.


    2. To Set Network Location of Current Network Connection to Private
    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Set_Current_Network_Location_to_Private.vbs

    Download

    3. To Set Network Location of Current Network Connection to Public
    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Set_Current_Network_Location_to_Public.vbs

    Download

    4. To Set Network Location of Current Network Connection to Domain
    This requires your PC to be joined to a domain.


    A) Click/tap on the Download button below to download the file below, and go to step 5 below.

    Set_Current_Network_Location_to_Domain.vbs

    Download
    5 Save the .vbs file to your desktop.

    6 Run the .vbs file.

    7 Unblock the .vbs file. (see screenshot below)

    Set Network Location to Private or Public in Windows 10 [​IMG]

    8 Click/tap on Yes or OK when prompted by UAC.

    9 The network location of your current network connect will now be changed.

    That's it,
    Shawn


    Related Tutorials

    :)
     
    sml156, Aug 30, 2015
    #1
  2. SpiritX MS MVP, Aug 30, 2015
    #2
  3. Shenan Stanley, Aug 30, 2015
    #3
  4. Brink
    Brink New Member

    Set Network Location to Private or Public in Windows 10

    Thank you sml156. I added this as OPTION FOUR. *Smile

    I'm not sure why your setting is not persistent. It's stays set for me after a restart.

    Do you have network discovery turned on?
     
    Brink, Aug 30, 2015
    #4
  5. sml156 Win User
    Thanks one thing about Option 4 in my case anyway was that PowerShell would return an error when my network card name had a space in it, Originally it was called "Ethernet 2" and the only way it would change state was to rename it "Ethernet-2"

    Something weird is going on with this Win 10 home edition I didn't notice until today that whenever I turn on Network discovery and press save then close Network sharing center and then reopen it my settings have changed back to turn off network sharing. I did want to try to figure it out but I'm tired of searching and the home edition does not have gpedit or secpol which is aggravating even when I don't have a problem and I do have a key for Windows ten Pro but I have been procrastinating and not installed it yet but I think I will do that this weekend.

    I have an unusual setup for internet in my garage , I use a USB Wifi to get a signal from my house that is about 50 feet and two brick walls away. Right now the ports look like Hubbard's cupboards because I disconnected a couple of computers


    This is what it looked like while I was trying to figure out the problem before giving up



    Set Network Location to Private or Public in Windows 10 [​IMG]
     
    sml156, Aug 31, 2015
    #5
  6. Charlieo Win User
    *HuhHi Brink,

    You were always a huge help on the Seven site.... so I am hoping you can be "Yoda" here too Set Network Location to Private or Public in Windows 10 :)

    I have a domain at home with desktops running W10 Enterprise. Clean installs. The Network location on each shows the domain (with the domain name). When the computers were set up, it took a couple of hours, but each machine was able to browse the network and see every other computer regardless of OS (7, 10, 2008r2 or 2012r2). The DC runs 2012r2.

    This week I started upgrading to the, November, Threshold 2 update (build 10586). I used DVD's and just upgraded the OS on each machine, leaving all files in place (never did get the update offered through WU). Worked almost 100% perfectly (leaving each machine attached to the domain, etc.) However, on each machine that I updated, browsing the network is now limited to seeing ONLY the two W7 machines left on the LAN. I have tried the suggestions in this article, but my locations already show the domain, so I didn't need to change location.... There are no group policies...

    Do you have any idea what the update might have changed or defaulted on these desktops? I am not sure how to get started fixing this. Whatever did change, probably was something that didn't work in previous builds or didn't exist, I guess. I also find it odd that they still see the W7 Pro X64 desktops.*Huh

    Any advice would be appreciated.

    Thanks.

    Charlie
     
    Charlieo, Nov 17, 2015
    #6
  7. Brink
    Brink New Member
    Hello Charlie, and welcome to Ten Forums. *Smile

    I wish I could help, but I have no experience with domains for this. Please go ahead and create a new thread in the Network and Sharing forum area to see if someone may be able to help soon.
     
    Brink, Nov 17, 2015
    #7
  8. rseiler Win User

    Set Network Location to Private or Public in Windows 10

    "Find devices and content" in #8 and #9 now reads "Make this PC discoverable" in Win10 TH2. MS just wants to keep you on your toes.
     
    rseiler, Dec 4, 2015
    #8
  9. Brink
    Brink New Member
    Thank you rseiler. MS sure does. The tutorial has been updated now. *Smile
     
    Brink, Dec 4, 2015
    #9
  10. marekfc Win User
    Hi, I can change it when I have Administrator rights. How about changing it by a user? Am I missing something? Build 10240
     
    marekfc, Jan 3, 2016
    #10
  11. Brink
    Brink New Member
    Hello marekfc, and welcome to Ten Forums. *Smile

    I'm afraid that you must be signed in as an administrator to be able to change the network location of a network adapter.

    You could still do this when signed in to a standard user account, but only when you enter an administrator's password when prompted by UAC when trying to do so.
     
    Brink, Jan 3, 2016
    #11
  12. marekfc Win User
    Thanks Brink,
    I think I got the solution for myself. AVG firewall can enable 'File and printer sharing' and user does not have to be an Administrator to do so.
     
    marekfc, Jan 4, 2016
    #12
  13. Brink
    Brink New Member

    Set Network Location to Private or Public in Windows 10

    I'm glad you found a workaround. *Smile
     
    Brink, Jan 4, 2016
    #13
  14. SOHO1 Win User
    As always, glad to have multiple solutions. Thank you, Brink.

    Note: I always end up using registry entries. Just learned the ALL Networks does not support the network location tab, though it's on the connection that I needed to change.


    Set Network Location to Private or Public in Windows 10 [​IMG]
     
    SOHO1, Jan 10, 2016
    #14
  15. Brink
    Brink New Member
    I'm glad it could help SOHO1. *Smile
     
    Brink, Jan 10, 2016
    #15
Thema:

Set Network Location to Private or Public in Windows 10

Loading...
  1. Set Network Location to Private or Public in Windows 10 - Similar Threads - Set Network Location

  2. Network showing as 'public' not 'private'.

    in Windows 10 Software and Apps
    Network showing as 'public' not 'private'.: My private network shows up as 'public' on my new laptop and 'private' on my 1-year old desktop. Both are using Windows 11. How do I get it private on the laptop?...
  3. Public or Private network question

    in Windows 10 Network and Sharing
    Public or Private network question: OK so in in Windows 10 you can choose whether your computer is on public or private network. I did my homework so I know that Private is recommended for home and it makes your PC discovarable and opens file sharing and public is recommended for public places like coffee shops...
  4. public or private network settings

    in Windows 10 Network and Sharing
    public or private network settings: windows 10, network created as private to enable sharing of network devices, but the public network takes over when rebooting, how to make the private settings stay primary? aslo the subnet pickups up the wifi factory address as 192.168.7.1 and locks to 255.255.255.0 no...
  5. Windows 10 treats the private network as a public network.

    in Windows 10 Network and Sharing
    Windows 10 treats the private network as a public network.: Windows blocks all connections on the same subnet. Windows will connect to any computer/server on the other side of the default route/router. This isolated tunneling through the resident subnet would be something I would expect from a public WiFi connection. The windows...
  6. Public or Private Network

    in Windows 10 Network and Sharing
    Public or Private Network: Hello, May I ask: Should a home PC user select (from their network properties) the Public or Private Network Option? I don't want my PC to be viewed or discoverable by any neighbors in the WiFi Network. I will not be file sharing. Just simply want security. Thanks...
  7. Should Network profile be set on Public or Private?

    in Windows 10 Network and Sharing
    Should Network profile be set on Public or Private?: I'm on my home computer, should I have my Network profile set on Public or Private? I do not want any my computer being detected by any network. The explantion of what the settings are, are confusing. Public says, "Your PC is hidden from other devices on the network and...
  8. Private and Public Network Connections

    in Windows 10 Network and Sharing
    Private and Public Network Connections: Hey everyone, just recently I reset my modem and router and my laptop. I have made sure that my home router is secure yet when I connect to it, if I go to settings it sets me as a public network. This is weird because when I got my laptop and connected, the computer...
  9. Setting public to private networks

    in Windows 10 Network and Sharing
    Setting public to private networks: I have a VPN for internet traffic which has a virtual adaptor, that is set to private. But the real adaptor is set to a public network and I want to set it to see other devices, therefore I want to change it to private how do I do this in build 1809? Winver says I have win...
  10. change network location from public to private

    in Windows 10 Network and Sharing
    change network location from public to private: Hi guys I am running a laptop with windows 10 , so how do I change the network profile from public to private . thanks 86368