Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sharif0777/e5fd5e4f9de512217279064d431537cc to your computer and use it in GitHub Desktop.
Save sharif0777/e5fd5e4f9de512217279064d431537cc to your computer and use it in GitHub Desktop.
PowerShell sample script to configure a Windows firewall rule
New-NetFirewallRule -DisplayName "MSSQL" -Direction Inbound -LocalPort 1433 -Protocol TCP -Action Allow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment