How to change from Public network to Private network - Windows 10 and using Powershell?

0

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.

enter image description here

Marcello Miorelli

Posted 2020-01-10T12:27:45.377

Reputation: 240

Answers

1

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

enter image description here

to check it through Windows:

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

enter image description here

  1. Choose Network and Sharing Centre enter image description here

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

enter image description here

Marcello Miorelli

Posted 2020-01-10T12:27:45.377

Reputation: 240