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; Note Make this PC discoverable settings will not be available if you have UAC set to Always notify. Setting UAC to a different level will allow Make... Discussion in 'Windows 10 Tutorials' started by sml156, Aug 30, 2015.

  1. hexaae Win User

    Set Network Location to Private or Public in Windows 10


    This is crazy! Why this?
     
    hexaae, Feb 23, 2016
    #16
  2. Brink
    Brink New Member

    I can only assume for security purposes, but yeah not sure why either.
     
    Brink, Feb 23, 2016
    #17
  3. Gilgamesh Win User
    Can you please explain how "will not be available" is supposed to manifest itself?
    I had someone asking for my help on a Surface Pro which had been upgraded to Win 10. For some reason their home Wi-Fi was always being set as public and I was trying to set it as Private (I wish I had seen this tutorial first *cry). When I got to the advanced options to try and change this there was nothing there at all. I would have hoped with something being disabled it would have simply been greyed out.
     
    Gilgamesh, Mar 10, 2016
    #18
  4. Brink
    Brink New Member

    Set Network Location to Private or Public in Windows 10

    Hello Gilgamesh, *Smile

    If UAC is set to "Always notify", then the Make this PC discoverable setting will not be there. If you set UAC to the default setting, then the Make this PC discoverable setting should be there.
     
    Brink, Mar 10, 2016
    #19
  5. Out of all of this, i did get the job done but due to the fact that I am constantly using different laptops or pc's or reloading the OS on one due to one thing or another, is there anything in the way of a script that I could run to simply set "all" networks to PRIVATE? Just a quick One Click and be done with it? This would not be a good idea for most people but I never use anything that is not on a private network and it has become a real drag to run secpol.msc or one fix or another to get the VPN's to show being connected on a private network.
    I may have read it above, and may have actually done it since it does now say Private but next time it happens I would like to click a script and know it happened with one click. Windows has made it SO hard to find the one place to set this which half the time isn't where it should be anyway due to UAC or other. Not to sound like a gripe but it is late and I just need that one thing done and over with *Sad
    Thanks. I am grateful for all the Help I find here
     
    questorfla, Mar 22, 2016
    #20
  6. Brink
    Brink New Member
    Hello questorfla, *Smile

    If the network names will always be the same, you could create a .bat file using the PowerShell command from OPTION FOUR to do so. You would then use "Run as administrator" on the .bat file when you want to run it.

    Here's an example of the command to place in the .bat file.

    PowerShell Set-NetConnectionProfile -Name "-Router3" -NetworkCategory Private
     
    Brink, Mar 22, 2016
    #21
  7. Thanks. But I was hoping to be able to use the settings in secpol.msc but run as a batch or script. I have to do this al the time here due to the VPN setup. Every time it gets updated or put on a new system, you have maybe 2 seconds to grab the slide-out and tell it "YES Make this PC Discoverable etc..
    If you miss that one chance, or happen to click anything else before using it, almost every time it happens i have to hunt everywhere and end up changing UAC and everything else to be able to see it again. *Sad
    Since Secpol trumps the rest, I thought it might be the easiest to change unless that is not a good idea.

    Update: maybe best to be selective but it requires a powershell script i am not sure how to put together:
    this is close but not there. I am not sure how to allow the input of the variable nw

    I think maybe this works?
    the first part is to elevate the the command to run as admin


    Code: if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }Get-NetConnectionProfile $nw = Read-Host 'Input the network to set to Private' Set-NetConnectionProfile -InterfaceIndex $nw -NetworkCategory Private pause[/quote] If so, *Smile
    My first PowerShell Script *Smile
    Always used batch
     
    questorfla, Mar 22, 2016
    #22
  8. Brink
    Brink New Member

    Set Network Location to Private or Public in Windows 10

    I'm afraid that I don't how to do this in PowerShell to be able to help with it, but it'll be worth a try to see if it'll work.
     
    Brink, Mar 22, 2016
    #23
  9. Oh, it works alright, much to my amazement! *Smile
    Just tested on several users. Now I need a nice interface instead of the normal "blue screen of death look" that PowerShell runs in.
    When run, it first asks the user for permission to edit the files as this is normally prevented by the security policies.
    If they say Y(yes) it displays the status of all network connections.
    WiFi, Wired, VPN etc. From this you pick the reference# for the one that is currently public that you want to be private
    type in the number of the Network Interface (6 or 10 etc) that you want to be Private and Viola'!
    Anything not desired to be changed is not.
    For me, at least, it is a perfect solution for a time consuming and annoying task.

    Now if only I could figure out how to get the PHP code in a web-hosted document indexer to open the pdf's server-side instead of downloading them by default each time one is clicked... I am WAY! off the reservation on that one. No idea at all.
     
    questorfla, Mar 22, 2016
    #24
  10. Brink
    Brink New Member
    If you like, create a new thread in the Network and Sharing to see if someone may be able to further help with the script. *Smile
     
    Brink, Mar 22, 2016
    #25
  11. fred3 Win User
    I have one like this that started out Public.
    I had to use the PowerShell approach to change it to Private.
    HOWEVER:
    The dialogs like these:

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


    are MISSING ENTIRELY.

    Yet, in Control Panel \ Network and Sharing Center \ Advanced Sharing settings:
    Private (Current profile)
    Turn on network discovery IS CHECKED.

    So, it works but the expected controls are missing.....

    Now I have to wonder why that should / could be?
     
    fred3, Apr 9, 2016
    #26
  12. Brink
    Brink New Member
    Brink, Apr 9, 2016
    #27
  13. fred3 Win User

    Set Network Location to Private or Public in Windows 10

    Windows 10 / Settings / Network.... / Ethernet
    Double click on network
    Shows properties but NOT the "Make This PC Discoverable". That's missing.

    The network has been set to Private.
    Control Panel Advanced Settings shows that "Turn on network discovery" is CHECKED and it appears to be working.

    ?????
     
    fred3, Apr 9, 2016
    #28
  14. Brink
    Brink New Member
    @fred3,

    Did you check to see if what I posted above was the issue?
     
    Brink, Apr 9, 2016
    #29
  15. fred3 Win User
    Yes. The UAC is set to the Default which is supposed to show these things as I understand it. And that's where I found it.
     
    fred3, Apr 10, 2016
    #30
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. Public or Private network question

    in Windows 10 Gaming
    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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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
  10. Private and Public Network Problem

    in Windows 10 Network and Sharing
    Private and Public Network Problem: Here's what I am trying to accomplish We have events at different locations where we need a private network. The network is wired between a workstation (that acts as a server) and 2-4 data input stations. They are all connected through a switch, which is connected to a...