Pregunta

I am trying to use netsh command to create windows firewall exception. The following command gives Syntex Error. Please advise where to make change.

Thanks

netsh firewall add allowedprogram C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\ sqlservr.exe “SQL Server Windows NT” ENABLE
¿Fue útil?

Solución

If you are on Vista/Win2008 or up do this:

all at one line, I added linebreaks here for readability:

netsh advfirewall firewall add rule 
          name="SQL Server Windows NT" 
          dir=in 
          action=allow 
          program="C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe " 
          enable=yes

the kb-article detailing the new command.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top