Friday, April 25, 2014

Change Network Profile in Windows Server 2012

Open PowerShell

To view currently assigned profile, enter command below:

Get-NetConnectionProfile

Result:
------
Name             : Network
InterfaceAlias   : Ethernet 2
InterfaceIndex   : 16
NetworkCategory  : Public
IPv4Connectivity : Internet
IPv6Connectivity : LocalNetwork

To change to Private
---------------------

 Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private

or Public