The latest Windows operating systems like Windows 10, Windows 8, or Windows 7 provide multiple network profiles in order to secure the system. These network profiles are Public, Work, and Private. The Public Profile
is used in nonsecure network environments in order to protect running services and ports. The Private Profile is used in more secure environments like a home network in order to increase the useability by allowing most of the services and ports. In this tutorial, we will learn how to change the network profile from public to private in Windows 10, Windows 8, Windows 7, etc.
Change From Public to Private via Network and Internet Settings
The Network Profile for a specific network interface line LAN, Ethernet, Wifi can be changed from the Network Interface properties. The Network Interface properties can be opened via Start Menu
-> Settings
-> Network & Internet
-> Properties
. In this screen select the Network profile
from the public to the private.

Change From Public to Private via PowerShell
PowerShell is another powerful and easy way in order to change the network profile from the public to the private. There is two-step to change the network profile. First, the current connection and network profile is listed with the Get-NetConnectionProfile
command.
Get-NetConnectionProfile

We can see that the name of the network is Network 2
which is created using the Ethernet0
network interface. Also, the current network profile is listed in the NetworkCategory
which is Public
. We can set the network profile setting by using the Set-NetConnectionProfile
command. The options -Name
and -NetworkCategory
should be specified. The option -Name is used to specify the connection name which is listed in the previous step. The option -Profile is used to set the profile of the specified connection.
Set-NetConnectionProfile -Name "Network 2" -Profile "Private"