Skip to content

Change Network Interface Firewall Profile with PowerShell

If you find your network has the wrong Firewall profile, you can set it with PowerShell

$Profile = Get-NetConnectionProfile -InterfaceAlias Ethernet1

$Profile.NetworkCategory = Private

Set-NetConnectionProfile -InputObject $Profile

 

clip_image001

Get your NIC Alias

clip_image001[7]

 

Get the profile as a variable:

image

Set it to private in the variable:

image

And Apply it:

image

image

Credit to Ryan Ries on Server Fault

Published inLync

Be First to Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.