Summary: Use Windows PowerShell to configure the network connection profile.
How can I use Windows PowerShell to set the network connection profile for my network adapter?
Use the Get-NetAdapter cmdlet to retrieve a network adapter, pipe it to the Set-NetConnectionProfile cmdlet,
and specify the network category, for example:
Get-NetAdapter | Set-NetConnectionProfile -NetworkCategory Private