Let’s first get a look at the profile used by your network adapters:

Get-NetConnectionProfile

Find the InterfaceIndex number of the adapter you wish to change then use command:

Set-NetConnectionProfile -InterfaceIndex <index number> -NetworkCategory Private