25 Mar 2019

Changing the Profile of a Network Adaptor in Windows Server 2012

To change a particular network adaptor between profiles such as Public or Private or Domain, you can use PowerShell. Just open a PowerShell prompt and follow the commends below, ensuring you know your network adaptor name and the name of the required profile

PS C:\>$Profile = Get-NetConnectionProfile -InterfaceAlias such as "Ethernet"
PS C:\>$Profile.NetworkCategory = such as "Private"

PS C:\>Set-NetConnectionProfile -InputObject $Profile