Skip to content

Changing the Network Profile in Windows Server 2012

Sometimes I have a virtual machine running Windows Server 2012 and can’t reach some of its services because I allowed their ports only for private networks in the Windows Firewall. Then I see that the network connection has the public profile. This is the easiest way I found to change the profile:

Open a PowerShell with administrator privileges and type


You should get a list of network interfaces:

Name             : Network
InterfaceAlias   : Ethernet
InterfaceIndex   : 12
NetworkCategory  : Private
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic

Name             : Network #2
InterfaceAlias   : LAN-Connection
InterfaceIndex   : 17
NetworkCategory  : Public
IPv4Connectivity : LocalNetwork
IPv6Connectivity : NoTraffic

You see that the second network is a public network. Use the InterfaceIndex 17 and enter:

Set-NetConnectionProfile -InterfaceIndex 17 -NetworkCategory Private

Now it is a private network!

Change user password in Windows Server 2012 R2 via RDP

Today one of my colleagues wanted to change his password in Windows Server 2012 R2 via a Remote Desktop Connection.

On a local systems you can press CTRL+ALT+DEL to select “Change password”. Obviously you can’t send this key combination through a Remote Desktop Connection. Solution: Press CTRL+ALT+END!