How to change public network to private Solved

  1.    #1

    How to change public network to private


    My wife's laptop jumped into public network mode yesterday for no known reason.

    I remember that it happened to my desktop last year, and I found instructions online showing how to change it back.

    So yesterday we searched online and she found the secpol.msc method.
    I rejected that solution because I "knew" that the policy editors are only available on the Windows Pro editions, and we have Windows Home.

    Oh wait! I was wrong. Her laptop has Pro. S'good. So we did the secpol thing and it's fixed.

    But back to my desktop ... which really is Windows Home. No secpol is available.
    So how the heck did I change it back from public to private last year? I cannot remember.
    Even if I remembered ... it might be moot because MS is always changing the settings panel with every new release.

    So ... after that long-winded tale ... how do I change public to private on Windows 10 Home 1803 ?
      My ComputerSystem Spec

  2. Bree's Avatar
    Posts : 11,924
    10 Home x64 (1903) (10 Pro on 2nd pc)
       #2
      My ComputersSystem Spec

  3.    #3

    Here is another interesting article:

    Add Network Location Type Context Menu in Windows 10
      My ComputerSystem Spec

  4.    #4

    That was the first solution we found online ...
    Bree said: View Post
    But it doesn't work here.

    At this point in your instructions ... I click on the network icon (yours says Brink, mine says GFIBER239) ...


    ... and I get this:

    There is no Make this PC discoverable slider.
    There are no public/private buttons.
    If it helps ... winver says I'm running version 1803 (build 17134.228)
      My ComputerSystem Spec

  5.    #5

    This solution worked for me ...
    lolnothankyou said: View Post
    Here is another interesting article:Add Network Location Type Context Menu in Windows 10
    I'd prefer not to leave my context menu cluttered with the extra menu entry.
    Is there a way to turn that into a command-line script? One script for public. One script for private.
      My ComputerSystem Spec

  6.    #6

    I'd prefer not to leave my context menu cluttered with the extra menu entry.
    Is there a way to turn that into a command-line script? One script for public. One script for private.
    There was link on that page to use PowerShell - Change network location type with PowerShell in Windows 10
      My ComputersSystem Spec


  7.    #7

    I found a way to do that with bash ...
    Code:
    # netpub / netpri - Change network type to public or private
    
    Base=$(basename "$0")
    
    case "$Base" in
      netpub) type="public";;
      netpri) type="private";;
           *) exit 1;;
    esac
    
    case "$type" in
       public) PowerShell -windowstyle hidden -Command "Start-Process PowerShell -ArgumentList '\$net = get-netconnectionprofile;Set-NetConnectionProfile -Name \$net.Name -NetworkCategory Public' -Verb RunAs"
               echo "network set to public";;
      private) PowerShell -windowstyle hidden -Command "Start-Process PowerShell -ArgumentList '\$net = get-netconnectionprofile;Set-NetConnectionProfile -Name \$net.Name -NetworkCategory Private' -Verb RunAs"
               echo "network set to private";;
    esac
    
    exit 0
      My ComputerSystem Spec

  8.    #8

    Eagle51 said: View Post
    There was link on that page to use PowerShell - Change network location type with PowerShell in Windows 10
    A simpler way to set all private with powershell (no need to enter specific names)
    Code:
    $NetConnectionProfiles = Get-NetConnectionProfile  | Where-Object {$_.NetworkCategory -eq 'Public'}
    ForEach ($NetConnectionProfile in $NetConnectionProfiles) {
    	Set-NetConnectionProfile -NetworkCategory Private
    }
      My ComputerSystem Spec

  9. Bree's Avatar
    Posts : 11,924
    10 Home x64 (1903) (10 Pro on 2nd pc)
       #9

    margrave55 said: View Post
    But it doesn't work here.

    At this point in your instructions ... I click on the network icon (yours says Brink, mine says GFIBER239) ...

    ... and I get this:

    There is no Make this PC discoverable slider.
    There are no public/private buttons.
    If it helps ... winver says I'm running version 1803 (build 17134.228)
    I have two machines, one Pro the other Home, both on 17134.228. Both are connected by WiFi to the same router. The blue 'Change connection properties' link on Settings > Network & Internet > Status should take you to the Network Profile settings - one does, the other doesn't.

    Click image for larger version. 

Name:	change connection proprties.PNG 
Views:	1 
Size:	150.9 KB 
ID:	200376

    There are other ways to get to that page, one machine allows me to set Public/Private, the other doesn't.

    Click image for larger version. 

Name:	Network status.PNG 
Views:	29 
Size:	22.0 KB 
ID:	200381

    Click image for larger version. 

Name:	Network status Hyper-V.PNG 
Views:	29 
Size:	10.5 KB 
ID:	200382

    Two possible reasons for this are given in the note for Option One, step 7 in Brink's tutorial....

    Note   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 this PC discoverable settings to be available.

    Make this PC discoverable settings will not be available if you have a Hyper-V virtual switch with this Ethernet connection....
    Set Network Location to Private or Public in Windows 10 | Windows 10 Tutorials

    In my case, The Pro machine is using Hyper-V.
      My ComputersSystem Spec


 

Related Threads
Hi guys I am running a laptop with windows 10 , so how do I change the network profile from public to private . thanks
My wifi network is public and i cant seem to get to the options to make it private. When I go to network/internet wifi i don't get the option to manage known networks. I can get to manage known networks another way but on the wifi network i want to...
I have extensively viewed the net for a solution, and have tried (as far as I know) every suggestion to make the change without success. Your comments/suggestions would be welcomed Thanks in advance
So I have Windows 10 up and running...How do I change my home Wi-Fi from Public networks to Private? I also want to join my homegroup however cannot seem to figure it out.... Thanks
Does anyone know how to change the network from Public to Private in build 9926? It's defaulting to Public with network discovery turned off, etc, and I'd like to change it to Private.
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 10:03.
Find Us