• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Tachytelic.net

  • Get in Touch
  • About Me

Change network from public to private on Windows Server 2016

November 27, 2018 by Paulie 2 Comments

  1. Open Powershell
  2. Type Get-NetConnectionProfile
    Image showing Powershell to get the current network profile
  3. If you have only one network connection you can change the profile to private by typing:
    Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private

    Image showing how to change network profile on Windows Server 2016 from Public to Private

  4. If you have multiple network interfaces and would like to change a specific adapter use the Interface Index Property like this:
    Set-NetConnectionProfile -InterfaceIndex 3 -NetworkCategory Private
  5. You can then verify the change has taken place by running Get-NetConnectionProfile again:
    Image showing Windows Server 2016 Network Connection with a Private Profile

How to change network profile to public

The same command also works to switch back to a public profile

Set-NetConnectionProfile -InterfaceIndex 3 -NetworkCategory  Public

Filed Under: How To Tagged With: Powershell, Windows Server 2016

Reader Interactions

Comments

  1. roman shimanovsky says

    March 6, 2020 at 9:25 pm

    thank you for this tip. I have two almost identical Win2016 Server VMs, with similarly configured firewalls. The only difference in network settings was that one VM was Public and the other was Private; I have no idea how it got set up this way.
    I was able to connect with Oracle tools from a remote host only to VM with Public network.
    Changing network from Private to Public resolved Oracle connection problem from remote hosts on the second VM.

  2. Neil Dayang says

    August 16, 2021 at 9:29 pm

    This is the best, directly answering the question. Thank you very much

Leave a Reply Cancel reply

Primary Sidebar

Link to my LinkedIn Profile
Buy me a coffee

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 245 other subscribers.

Go to mobile version