Share this question

Welcome to Teachnovice Q&A, where you can ask questions and receive answers from other members of the community.

This is a collaboratively edited question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I make a connection private on Windows Server 2012 R2?

0 like 0 dislike

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

asked Apr 16, 2015 by Groo  

1 Answer

0 like 0 dislike
Best answer

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.

PS C:\>$Profile = Get-NetConnectionProfile -InterfaceAlias Ethernet1

PS C:\>$Profile.NetworkCategory = Private

PS C:\>Set-NetConnectionProfile -InputObject $Profile
answered Apr 16, 2015 by Ryan Ries  

Thanks a lot! This saved me. One tiny correction (the TechNet article for Set-NetConnectionProfile also has this typo): Private should be a string in the second line, i.e. $Profile.NetworkCategory = "Private" is correct. The same goes for the connection name ("Ethernet1").