Windows set network private

How to Change Your Network Profile to Public or Private in Windows 10

In Windows 10, there are two sets of default security and sharing settings when you connect to a wired or wireless network: public and private. The names of these two settings are fairly straightforward. Private networks are in your home or office, while public networks are everywhere else—coffee shops, airports, libraries, etc.

That much is obvious. But how does Windows 10 treat public networks and private networks differently? And how do you switch from one to the other? That’s precisely what we’ll be covering in this article.

Set Your Network Profile in Windows 10 to Private or Public

When you first connect to a network, Windows will ask you what kind of network it is and what settings you want to use. If you don’t remember doing this, or you changed your mind about how you want to treat a network, then you can switch it.

Generally speaking, when you set a network profile to “public,” the settings are more restrictive. Your PC won’t be visible to other devices on the same network. Other devices won’t be able to access your files or printers on the network.

On a “private” network, Windows 10 assumes that you are on a trusted network that only you and your family members have access to. Your device will be discoverable on the network (others can see it). If you are using Homegroups, you’ll be able to share printers and files with other computers on the network.

Public and private networks also have different firewall settings. By default, both public and private networks have pretty restrictive firewall settings. But you can customize your firewall settings to be different depending on what type of connection you’re on.

How to Change a Wireless Network to Private or Public

To change from a public network to a private network for vice versa, start by connecting to your network. You can do this by opening the available Network icon in the Notification area. Select the network, then connect to it. After connecting, select it then click Properties.

Here you can change your Network profile to Public or Private. Choose the one that best suits your environment.

How to Change a Wired Network to Public or Private

If you want to change the network profile for a wired network, open Start > Settings > Network & Internet > Ethernet then click your network adapter.

Then choose the profile you want.

Customize Public and Private Network Settings

You can change the settings for your public or private networks. For example, if you wanted to make your computer discoverable on public networks (not recommended) or disable file or printer sharing on a private network, you could.

Читайте также:  Apt get commands linux

Open Start > Settings > Network & Internet, under Change your network settings, click Sharing options.

Expand Private or public, then choose the radio box for the desired options such as turning off network discovery, file and printer sharing or accessing homegroup connections.

There you have it, easy ways to protect or give access to your networks. If you want to learn more about managing networks in Windows 10, check out our other articles How to Create and Join a HomeGroup in Windows 10 and Connect Windows 10 to Wired, Wireless, and P2P Networks. Users working with a mix of Macs and Windows can find help in our guide How to Network Windows 10 and OS X and Share Files.

Make a Wi-Fi network public or private in Windows 10

When you first connect to a Wi-Fi network, you can set it as public or private—depending on the network and what you want to do:

Private network. Use this for networks you trust, such as a network at home or work. When a network is set to private, your PC is discoverable to other devices on the network, and you can use your PC for file and printer sharing.

Public network. Use this for networks you connect to when you’re out and about, such as a Wi-Fi network at a coffee shop. Your PC will be hidden from other devices on the network, and you can’t use your PC for file and printer sharing.

After you connect to a network the first time, you can change it to public or private at any time.

On the right side of the taskbar, select the Wi-Fi network icon.

Select the Wi-Fi network you want to connect to, then select Connect.

Type the network password, and then select Next.

When asked if you want your PC to be discoverable to other devices on the network, do one of the following:

To set it as a private network where your PC will be discoverable to other devices on the network, choose Yes.

To set it as a public network where your PC won’t be discoverable to other devices on the network, choose No.

On the right side of the taskbar, select the Wi-Fi network icon.

Under the name of the Wi-Fi network that you’re connected to, select Properties.

Under Network profile, select Public or Private.

Note: To use these steps to set a network to public or private, your PC must be running Windows 10 Version 1709 or later. To see which version of Windows 10 your device is currently running, select Start , then select Settings > System > About .

Как изменить тип сети с общедоступной на частную в Windows 10 / Server 2016/2012 R2?

В этой статье мы рассмотрим понятие профиля сети в Windows, рассмотрим какие типы профилей сети бывают, для чего используются и как изменить назначенный профиль сети с “общедоступной” на “частную” или наоборот в Windows 10/Windows Server 2019/2016. Это бывает нужно, если сеть неправильно определяется как общественная (Public Network), когда должен быть определена как частная (Private).

Читайте также:  Windows error reporting documents

Сетевые профили Windows являются частью брандмауэра Windows и позволяют применять различные правила брандмауэра в зависимости от типа сети, к которой подключен компьютер. В зависимости от примененного профиля для вашего сетевого подключения, другие компьютеры могут видеть или не видеть ваш компьютер в сети (настройки сетевого обнаружения), использовать расшаренные папки и сетевые принтеры.

Типы (профили) сети в Windows

Профили сети появились еще в Vista/Windows Server 2008. В Windows 10 (Windows Server 2016) сетевому интерфейсу (будь то Ethernet или Wi-Fi) можно присвоить один из трех сетевых профилей.

  • Частная или домашняя сеть (Private) – профиль для доверенной сети (домашняя или рабочая сеть в офисе). В такой сети компьютер будет доступен для обнаружения другими устройствами, на нем можно использовать службы общего доступа к сетевым файлам и принтерам;
  • Общедоступная (общественная) сеть (Public) – профиль для недоверенной сети (кафе, публичная Wi-Fi сеть в метро, аэропорту). Вы не доверяете другим устройствам в такой сети, ваш компьютер будет скрыт для других устройств, нельзя получить удаленный доступ к опубликованным у вас сетевым папкам и принтерам;
  • Доменная сеть (Domain) – сетевой профиль для компьютеров, состоящих в домене Active Directory. Применяется автоматически после добавления Windows в домен. Для этого профиля вы можете применять доменные политики брандмауэра.

Как уже говрилось ранее, на основании профиля сети, примененного к сетевому интерфейсу, к нему применяются разные правила брандмауэра Windows.

В Windows 10 вы можете проверить текущий профиль, который назначен сетевому подключению в меню Settings -> Network and Internet. На моем скриншоте видно, что сетевому интерфейсу Ethernet0 присвоен профиль Public.

В классической панели управления тип сети для активных сетевых подключения отображается здесь: Control Panel\All Control Panel Items\Network and Sharing Center.

Но изменить тип назначенного профиля сети из классической панели управления нельзя. Например, в Windows Server 2012 R2/ Windows 8.1 изменить профиль сети можно только через PowerShell, реестр или локальную политику безопасности.

Как присваивается профиль для сети в Windows 10?

Профиль сети в Windows 10 выбирается пользователем при первом подключении к новой сети. Появляется запрос:

Если выбрать “Да”, сети присваивается профиль Private (домашняя), если “Нет” – public (общедоступная). При следующем подключении к этой же самой LAN или WiFi сети автоматически назначается выбранный ранее профиль.

В Windows 10 вы можете сбросить все настройки и профили для всех сохраненных сетей, выбрав Параметры -> Сеть и Интернет -> Состояние -> Сброс сети. Перезагрузите компьютер.

Теперь при подключении к сети опять появится запрос о включении сетевого обнаружения.

Как в Windows 10 изменить профиль сетевого подключения?

Вы можете изменить тип сети из графического интерфейса Windows 10. Если вы используете новую панель Параметры, перейдите в раздел «Сеть и Интернет» -> «Состояние» -> «Изменить свойства подключения» (Change connection properties).

Здесь можно переключить применяемый сетевой профиль с Public на Private и наоборот.

Из классической Панели Управления Windows 10 изменить тип сетевого профиля интерфейса нельзя.

Также вы не можете сменить профиль на компьютере в домене, для сетевого подключения к домену всегда будет использоваться профиль Domain.

Изменить профиль сети с Public на Private в Windows 10 через PowerShell

В Windows 10 / Windows Server 2016/2019 вы можете управлять профилями сетевых подключений из PowerShell. Запустите консоль PowerShell с правами администартора.

Теперь с помощью командлета Get-NetConnectionProfile получим список сетевых интерфейсов и применённые к ним профили сети.

Читайте также:  Quadro p400 driver windows 10

В моем примере на компьютере имеется 4 сетевых подключения, с разными типами профилей сети (NetworkCategory: Public, Private и DomainAuthenticated.

Попробуем изменить профиль сети для одного сетевого подключения. В этом случае нас интересует индекс, назначенный данной сетевой карте. В этом примере InterfaceIndex = 19.

Зная индекс сетевого интерфейса, можно изменить тип сети на Private:

Set-NetConnectionProfile -InterfaceIndex 19 -NetworkCategory Private

Проверим, что профиль сети изменился:

Get-NetConnectionProfile -InterfaceIndex 19

Новые правила брандмауэра будут применены к интерфейсу в соответствии с назначенным профилем без перезагрузки.

Также вы можете изменить профиль сети сразу для всех сетевых адаптеров компьютера:

Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private

Изменить тип сети в Windows 10 через редактор реестра

Вы можете изменить тип сети через редактора реестра. Для этого нужно запустить regedit.exe и перейти в раздел HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles, в котором хранятся профили всех сетевых подключений.

Найти нужный профиль сети можно по имени в Центре управления сетями. Имя сети указано в ключе реестра ProfileName. Тип сети задается в параметре Category. Доступны следующие значения этого ключа:

  • 0 — Общественная сеть (Public Network)
  • 1 — Частная сеть (Private Network)
  • 2 — Доменная сеть (Domain Network)

Измените значение ключа на нужный и перезагрузите компьютер.

Сменить профиль сети через политику безопасности

Еще один способ смены типа сети — редактор локальной политики безопасности (Local Security Policy).

Make a Wi-Fi network public or private in Windows 10

When you first connect to a Wi-Fi network, you can set it as public or private—depending on the network and what you want to do:

Private network. Use this for networks you trust, such as a network at home or work. When a network is set to private, your PC is discoverable to other devices on the network, and you can use your PC for file and printer sharing.

Public network. Use this for networks you connect to when you’re out and about, such as a Wi-Fi network at a coffee shop. Your PC will be hidden from other devices on the network, and you can’t use your PC for file and printer sharing.

After you connect to a network the first time, you can change it to public or private at any time.

On the right side of the taskbar, select the Wi-Fi network icon.

Select the Wi-Fi network you want to connect to, then select Connect.

Type the network password, and then select Next.

When asked if you want your PC to be discoverable to other devices on the network, do one of the following:

To set it as a private network where your PC will be discoverable to other devices on the network, choose Yes.

To set it as a public network where your PC won’t be discoverable to other devices on the network, choose No.

On the right side of the taskbar, select the Wi-Fi network icon.

Under the name of the Wi-Fi network that you’re connected to, select Properties.

Under Network profile, select Public or Private.

Note: To use these steps to set a network to public or private, your PC must be running Windows 10 Version 1709 or later. To see which version of Windows 10 your device is currently running, select Start , then select Settings > System > About .

Оцените статью