How to Change from Public Network to Private Network - Windows 10 and Using Powershell?

I am using Hamachi to connect from home to the office and vice-versa - but I am having problems when connecting from office to home.

At home Hamachi is on a public network, how can I change this to private network?

I saw this question but it is Windows 7:
How to change from Public network to Private network

Plus I would like it in Powershell.

1 Answer

I found this article:
How to force a network type in Windows using PowerShell

Get the powershell script running:

#check the network you got - get the names
Get-NetConnectionProfile


#the name of my network is - Network 2 - that's the one I am making private
#make it private
Set-NetConnectionProfile -Name "Network 2" -NetworkCategory Private

#check out the results
Get-NetConnectionProfile

to check it through Windows:

  1. Right click on the network thingy at the right hand side - choose Open Network & Internet settings
  1. Choose Network and Sharing Centre

  2. Then you can see your Networks - notice private now

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest