banner
呗湪

呜喵's Blog

designer from Canton China
telegram
twitter

How to change the network category from "Public" to "Private" for networks not connected to the internet in Windows 11

Even by the end of 2024, Windows 11 still has many issues, and the migration of the Control Panel to the new Settings still has many problems. One recent issue I encountered is that if there are multiple networks, when using Windows' network properties profile type, the new network settings page does not allow changing the profile type of other networks that are not connected to the internet (such as ZeroTier and some VPN virtual network adapters). In the past, this could be changed in the Control Panel, but now (I am using the 23H2 version of Win11) this option has been removed from the Control Panel, and the migration to Settings is, as mentioned above, not complete...
End of my rambling, here are the methods for the settings:

  1. List all currently connected networks. Find the Name (network name) or InterfaceAlias (interface alias) of your VPN network.
Get-NetConnectionProfile

  1. Change the network category from Public to Private
Set-NetConnectionProfile -Name "Your VPN Network Name" -NetworkCategory Private

or

Set-NetConnectionProfile -InterfaceAlias "Interface Alias" -NetworkCategory Private

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.