01
@echo =========  SQL Server Ports  ===================
02
@echo Enabling SQLServer default instance port 1433
03
netsh firewall set portopening TCP 1433 "SQLServer"
04
@echo Enabling Dedicated Admin Connection port 1434
05
netsh firewall set portopening TCP 1434 "SQL Admin Connection"
06
@echo Enabling conventional SQL Server Service Broker port 4022
07
netsh firewall set portopening TCP 4022 "SQL Service Broker"
08
@echo Enabling Transact-SQL Debugger/RPC port 135
09
netsh firewall set portopening TCP 135 "SQL Debugger/RPC"
10
@echo =========  Analysis Services Ports  ==============
11
@echo Enabling SSAS Default Instance port 2383
12
netsh firewall set portopening TCP 2383 "Analysis Services"
13
@echo Enabling SQL Server Browser Service port 2382
14
netsh firewall set portopening TCP 2382 "SQL Browser"
15
@echo =========  Misc Applications  ==============
16
@echo Enabling HTTP port 80
17
netsh firewall set portopening TCP 80 "HTTP"
18
@echo Enabling SSL port 443
19
netsh firewall set portopening TCP 443 "SSL"
20
@echo Enabling port for SQL Server Browser Service's 'Browse' Button
21
netsh firewall set portopening UDP 1434 "SQL Browser"
22
@echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)
23
netsh firewall set multicastbroadcastresponse ENABLE
