MS Server 2012/2016 Shows Wrong Network Profile
  • 30 Jun 2023
  • 1 Minute to read
  • Dark
    Light

MS Server 2012/2016 Shows Wrong Network Profile

  • Dark
    Light
  • New

Article Summary


One of those little annoyances that can sometimes happen with the Network Locationin MS Server 2012/2016, is that the network gets misidentified as Public when it should be Private, or the other way around. Changing this in the GUI is possible, but can be annoying and time consuming, so we can take advantage of the improved Windows PowerShell support in Server 2012 and 2016 and do it quickly and easily.

1. First, let's open up an elevated PowerShell window. Click the Start button in the bottom left. Type Powershell then right-click on its icon and Run as Administrator. Newer versions of windows are as seen below:

Now, in that window, let's find out what our current network location is set to:

Get-NetConnectionProfile

From the above example, we see that the problem interface has an Interface Index of 18, so:

Set-NetConnectionProfile -InterfaceIndex 18 -NetworkCategory Private

By entering the above we have now set its Interfaceindex and set it it's NetworkCatgeory to Private.

This can also occur on domains attached servers. In that case, it will usually be necessary to detach the server from the domain, run the above procedure, then reattach to the domain. This will require Domain Administrator credentials.









Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy, a super-smart generative AI, opening up ways to have tailored queries and responses