Changing the Network Profile using Powershell

Recently wanted to enable remote management of a server via powershell so that I could try out Project Honolulu for managing Windows Servers

Make sure WinRM service is running and start up to automatic

Get-Service winrm

Enable Powershell Remoting

Enable-PSRemoting -Force

Ensure network profiles are ok

# Show network profile
> Get-NetConnectionProfile

Name             : Network
InterfaceAlias   : Ethernet
InterfaceIndex   : 2
NetworkCategory  : Public
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic

# Set network profile from Public to Private
> Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private

# Verify the update completed
> Get-NetConnectionProfile

Name             : Network
InterfaceAlias   : Ethernet
InterfaceIndex   : 2
NetworkCategory  : Private
IPv4Connectivity : Internet