Powershell and Firewall

Change Firewall Profile

Get active firewall profiles

Get-NetConnectionProfile

List network adapters

Get-NetAdapter

get network adapter profile (see current profile)

Get-NetConnectionProfile -InterfaceIndex 6

Set profile on interface

Set-NetConnectionProfile -InterfaceIndex 6 -NetworkCategory Private