The network status screen shows the connection type. Change network location to Public / Private. From the left pane, click Ethernet if your connection is a wired connection or WiFi in case of a Wireless connection and then Click on your network connection icon. Select Public. The network location will then change to Public.
After a restart of one of our servers (a Windows Server 2012 R2), all private connections become public and vice versa (this user had the same problem). Stuff like pinging and iSCSI stopped working, and after some investigation it turned out this was the cause.
The problem is that I don't know how to make them private again. Left-clicking the network icon in the tray shows the 'modern' sidebar, but it only shows a list of connections, and right-clicking them doesn't show any options.
What could be the problem, and is there a way to change these settings? I have to make one of the connections public (Internet access), and two of them private (backbone).
Community♦
GrooGroo
6372 gold badges12 silver badges23 bronze badges
7 Answers
Powershell. Here is an example of changing the network profile of a network interface called Ethernet1 from whatever it is now to 'Private.' I got this info from
Get-Help Set-NetConnectionProfile -Full
.
Documentation: https://technet.microsoft.com/en-us/library/jj899566(v=wps.630).aspx
Ryan RiesRyan Ries
51k8 gold badges118 silver badges182 bronze badges
A GUI way of making this change:
- Hit Winkey + R to open Run prompt and type gpedit.msc
- Navigate to:
Computer Configuration/Windows Settings/Security Setting /Network List Manager Policies
. - Choose your Network name in the right pane.
Note: To show networks not currently connected, right-click Network List Manager Policies in the left pane and choose Show All Networks. -
Go to Network Location tab and change the Location type from Public to Private.
-
Close Local Policy Editor.
Source:https://social.technet.microsoft.com/Forums/lync/en-US/82ccc68c-947e-435a-a237-1090f38d0dbe/windows-server-2012-r2-datacenter-network-stuck-in-public-mode
Twisty Impersonator
2,5226 gold badges19 silver badges43 bronze badges
MikeMike
Using Powershell. Here is an example of changing the network profile of a network interface called Ethernet to 'Private.' This is a one line command.
This will work on any local computer with Powershell installed.
Drifter104
3,1852 gold badges17 silver badges35 bronze badges
techmantechman
XaloXalo
I've had a similar issue for months on my home 2012R2 Domain Controller.
After patching and a reboot I could not connect via RDP.
I have MS firewall turned off in GPO for domain networks. After not being able to connect I found that the primary Ethernet connection was listed as public and therefore the firewall was ON.
Why is the NIC changing from domain to public ?
After researching a few articles on the web, I've concluded the following:
After researching a few articles on the web, I've concluded the following:
After a restart of the only DC in the domain, AD services are not immediately available when the IP stack is initialized.
This results in the OS sensing that this is a public network and it sets the NIC accordingly.
This results in the OS sensing that this is a public network and it sets the NIC accordingly.
Permanent resolution of this problem on this machine was to set the Network Location Awareness service to delayed start.
This allows AD services to become available and then the OS senses a domain network and sets the NIC accordingly.
Swisstone
2,5711 gold badge10 silver badges22 bronze badges
Jim VizzaccaroJim Vizzaccaro
Had this issue on a VM and just had to restart the Network Location Awareness service to get it to figure out that it was connected to a Domain and start using a domain profile.
ShawnShawn
What made it work on my Windows Server 2012 R2 standard servers was to enable IPV6 again.
In a move to make future troubleshooting easier for myself I disabled IPV6 left right and center and after doing that the Windows Firewall no longer showed that 'Domain' was connected.
Why on earth Windows can't determine that it's on a domain if only IPV4 is connected is beyond me.
bah
captchacaptcha
protected by Community♦Dec 30 '17 at 14:51
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?
Not the answer you're looking for? Browse other questions tagged networkingwindows-server-2012-r2 or ask your own question.
If you have Windows 10, you may want to check if your network connection is set to public or private. That’s because, depending on the connection, your computer will interact differently with other connected devices.
Also see our article How To Setup WPA2 Enterprise on your Network
The first time you connect to a public network, the Network Wizard will ask if you want to be discoverable by other devices. This can allow file sharing and other interaction between your device and others connected to the same network.
To prevent others from gaining unauthorized access to your private data, you should check what kind of environment your PC is set up to connect to before you continue browsing.
Types of Networks
Quick Links
- Changing from a Public to Private Network in Windows 10
- Are There Other Ways to Change from Public to Private?
There are three types of networks that you can connect to – public, private, and domain.
A public network is a network that is shared freely with the world. Airports, shopping malls, public institutions, cafes, and other large objects have their own public Wi-Fi networks. These connections don’t have any safety features to protect your device. To make up for that, Windows will automatically block all file and network sharing options. If you wanted to share files with another device, you would have to manually allow it.
A private network is usually a home network or a small office network. You can also set up a private network between yourself and other users you find trustworthy (for example, your roommates, colleagues, or family members). Your device will connect to a homegroup and other devices on the network, such as scanners, printers, etc.
A domain network is one where a device acts as an administrator of an entire network. That administrator device is a server. All other devices can connect to this server and manage resources that are on it.
Changing from a Public to Private Network in Windows 10
If you are unsure about the status of your network and want to switch it to private, follow these few simple steps.
Identify the Network Profile
To see what type of network is currently active on your computer, you will have to go to the Windows Menu > Settings > Network & Internet.
When you open the Network & Internet window, the Status menu should open by default. If not, open it manually. This is where you will see whether your network is private or public.
Many public networks are password-protected, but they can still be shared with nearby devices. If you want your network to be part of a closed group like a small office, it would be better to set it as private.
Change the Network from Public to Private
To change the connection from public to private or the other way round, you should look at the sidebar on the left and find your connection. It is usually placed below the Status menu.
The label will depend on the type of connection you are using. For example, if you are using Wi-Fi, you will see a Wi-Fi option. If you are using an Ethernet cable, you will see the Ethernet menu instead.
Sometimes you may be connected to more than one network. In those instances, you have to choose which one you want to change. Once you identify your connection, click on it. It will open that network’s properties.
In the Network Properties window, you will see the Network Profile section with two available options. Here you can change between private and public depending on your needs. When you finish, you can close the settings and go back to the previous window.
Keep in mind that there could be some variations depending on the Windows 10 release you have installed.
Are There Other Ways to Change from Public to Private?
Yes, there are other ways to change your network type. These two methods require you to be more tech-savvy as you’ll be tampering with the system, which could affect the functionality of your device if you don’t know what you’re doing.
PowerShell
You can access PowerShell as an admin by pressing the Win and X keys at the same time and clicking on Windows PowerShell (Admin). A User Account Control Window may appear where you should click Yes, and you will then see the PowerShell window.
Here you type these commands in this order:
Get-NetConnectionProfile
Set-NetConnectionProfile -InterfaceIndex <index number> -NetworkCategory Private
Once you type the first command, you will see the index number of the network displayed under its name. You just rewrite this number in the second command.
Registry
You may also try and change the network type in the registry. However, it is not recommended if you don’t know how to use it properly.
Press Win and R to open the ‘Run’ app on your Windows 10, type regedit into the box, and press Enter. The registry window will open.
Look for the folder stored in:
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListProfiles
Expand the key folder labeled Profiles and you will see subfolders with numbers and letters in their names. Open each one until you find the Description sub-key in the right pane that matches the name of your Network.
Once you have found it, double-click the Category sub-key in that same folder.
If you change the number from 0 to 1 your network type becomes private.
If you change it from 1 to 0, it will become public again.
A Word of Warning
There it is! These are the usual and slightly less usual ways to change your network type depending on your environment.
Remember to be careful with public networks as others may connect to them and gain access to your files, personal data, and connected devices. At the same time, if you opt to set your network to private, you should only grant access to people you trust.