1. launch powershell as administrator
2. Get-NetConnectionProfile
you'll get a list of interaces with names, indexes, etc.
3. Set-NetConnectionProfile -InterfaceIndex <index number> -NetworkCategory Private
where <index number> is the index of the Hamachi interface