Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial