domingo, setembro 11, 2016

Network Location - Set to Private or Public in Windows 10 - Windows 10 Forums

Network Location - Set to Private or Public in Windows 10 - Windows 10 Forums



windows 10 set private network

windows 10 alterar para rede privada

windows 10 change network to private





How to Set Network Location to be Public or Private in Windows 10


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

The first time you connect to a network, you might be asked if you want to find PCs, devices, and content on the network, and automatically connect to devices like printers and TVs. Turning on this setting prepares your PC for sharing files and devices on a network. It also 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.

This tutorial will show you how to set the network on your PC to be connected to a domainpublic, 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.
Note   Note
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.

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"
Click image for larger version. 

Name: Public_network.png 
Views: 4494 
Size: 36.7 KB 
ID: 20994
Click image for larger version. 

Name: Private_network.png 
Views: 2329 
Size: 37.3 KB 
ID: 20993
Click image for larger version. 

Name: Domain_network.png 
Views: 1452 
Size: 37.0 KB 
ID: 20980







Network Location - Set to Private or Public in Windows 10 OPTION ONE Network Location - Set to Private or Public in Windows 10
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 system icon in the taskbar notification area, click/tap on the Network settings link, and go to step 4below. (see screenshot below)

Name:  Network_Settings_taskbar.png
Views: 384068
Size:  114.4 KB

3. Open Settings, click/tap on the Network & Internet icon, and go to 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 arecurrently connected to, and go to step 7 below. (see screenshot below)
Click image for larger version. 

Name: Network_Location_Ethernet_Settings-1.png 
Views: 9798 
Size: 34.5 KB 
ID: 20981


 6. To Change Network Location of Wi-Fi Network

A) Click/tap on Wi-Fi on the left side, click/tap on the Manage known networks link. (see screenshot below)

Click image for larger version. 

Name: Metered_Network_Settings-1.png 
Views: 3598 
Size: 63.1 KB 
ID: 71575

B) Click/tap on the wireless network name (ex: Brink-Router2) you are currently connected to, click/tap on Properties, and go tostep 7 below. (see screenshot below)

Name:  Metered_Network_Settings-2.png
Views: 177690
Size:  19.0 KB


7. Do step 8 (Private) or step 9 (Public) below for the network location you want.
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.

Click image for larger version. 

Name: Hyper-V_virtual_switch_network_connection.png 
Views: 625 
Size: 23.8 KB 
ID: 76388


 8. To Change to a Private Network Location

A) Turn on Make this PC discoverable, and go to step 10 below. (see screenshots below)
Click image for larger version. 

Name: Network_Location_Settings-2.png 
Views: 4743 
Size: 188.2 KB 
ID: 52093

 9. To Change to a Public Network Location

A) Turn off Make this PC discoverable, and go to step 10 below. (see screenshots below)
Click image for larger version. 

Name: Network_Location_Settings-3.png 
Views: 1967 
Size: 189.4 KB 
ID: 52094

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







Network Location - Set to Private or Public in Windows 10 OPTION TWO Network Location - Set to Private or Public in Windows 10
To Change a Network Location in Registry Editor

1. Type regedit in the search box (Windows+Q) 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

Click image for larger version. 

Name: Network_Location_registry-1.png 
Views: 2228 
Size: 24.0 KB 
ID: 20986

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'sProfileName string value in the right pane to see if it has the current network name (ex: Network) until found. (see screenshot below)

Click image for larger version. 

Name: Network_Location_registry-2.png 
Views: 1838 
Size: 41.3 KB 
ID: 20987

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)

Click image for larger version. 

Name: Network_Location_registry-3.png 
Views: 1373 
Size: 41.0 KB 
ID: 20988

6. Type in a new data value number for the network location you want, and click/tap on OK. (see screenshot below)

Network LocationData Value
Public0 (zero)
Private1
Domain2

Name:  Network_Location_registry-4.png
Views: 379940
Size:  10.5 KB

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.







Network Location - Set to Private or Public in Windows 10 OPTION THREE Network Location - Set to Private or Public in Windows 10
To Change a Network Location Local Security Policy


Note   Note
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)

Click image for larger version. 

Name: Network_Location_local_security_policy-1.png 
Views: 1404 
Size: 36.0 KB 
ID: 20982

3. In the right pane of Network List Manager Policies, double click/tap on your network name (ex: Network). (see screenshot above)
Note   Note
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

NOTE: This is the default setting.

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

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.

Name:  Network_Location_local_security_policy-4.png
Views: 379571
Size:  17.0 KB


 6. To Change to a Private Network Location

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

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.

Name:  Network_Location_local_security_policy-3.png
Views: 379095
Size:  17.0 KB


 7. To Change to a Public Network Location

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

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.

Name:  Network_Location_local_security_policy-4.png
Views: 379571
Size:  17.0 KB

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







Network Location - Set to Private or Public in Windows 10 OPTION FOUR Network Location - Set to Private or Public in Windows 10
To Change a Network Location in PowerShell


Note   Note
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), or step 5 (Public) 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) or step 5 (Public) below for what you would like to set your network location as.

Click image for larger version. 

Name: network_location_PowerShell-1.png 
Views: 1039 
Size: 38.5 KB 
ID: 34862


 4. To Set Network Location to Private

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

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

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

Click image for larger version. 

Name: network_location_PowerShell-3.png 
Views: 444 
Size: 26.6 KB 
ID: 34864


 5. To Set Network Location to Public

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

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

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

Click image for larger version. 

Name: network_location_PowerShell-2.png 
Views: 372 
Size: 26.7 KB 
ID: 34863


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







Network Location - Set to Private or Public in Windows 10 OPTION FIVE Network Location - Set to Private or Public in Windows 10
To Change Network Location of Current Network Connection in PowerShell

1. Open an elevated Windows PowerShell.

2. Do step 3 (Private) or step 4 (Public) 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 5 below. (see screenshot below)

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

Click image for larger version. 

Name: Private.png 
Views: 165 
Size: 18.8 KB 
ID: 77550


 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 5 below. (see screenshot below)

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

Click image for larger version. 

Name: Public.png 
Views: 108 
Size: 18.5 KB 
ID: 77551


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







Network Location - Set to Private or Public in Windows 10 OPTION SIX Network Location - Set to Private or Public in Windows 10
To Change Network Location of Current Network Connection using a VBS file

1. Do step 2 (Private) or step 3 (Public) 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 4 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 4 below.

Set_Current_Network_Location_to_Public.vbs

download


4. Save the .vbs file to your desktop.

5. Run the .vbs file.

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

Click image for larger version. 

Name: Unblock.png 
Views: 118 
Size: 19.4 KB 
ID: 77549

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

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



That's it,
Shawn



Nenhum comentário: