You can do this easily with some PowerShell. First
Get-NetConnectionProfile
and press enter. Some information is then shown about the active network connection. Then you can use
Set-NetConnectionProfile -Name "NetworkName" -NetworkCategory Private
(replace 'NetworkName' with the value of the 'Name' from above command)
--please don't forget to upvote
and Accept as answer
if the reply is helpful--