문제

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
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top