Link to home
Create AccountLog in
Avatar of techgenious
techgeniousFlag for United States of America

asked on

PowerShell Port Opening SQL

I'm looking for a powershell script that will open up various SQL ports.

Examples:
TCP 1433 "SQLServer"
TCP 1434 "SQL Admin Connection"
TCP 4022 "SQL Service Broker"
 TCP 135 "SQL Debugger/RPC"
TCP 2383 "Analysis Services"
TCP 2382 "SQL Browser"
UDP 1434 "SQL Browser"


Can someone give me a script that opens these ports up via powershell.  I know how to do it via batch file:
netsh firewall set portopening UDP 1434 "SQL Browser"

netsh firewall set portopening TCP 80 "HTTP"

thanks
ASKER CERTIFIED SOLUTION
Avatar of ETH
ETH

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.