Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
XML
I am using following command to create firewall exception. The command is being run through a batch file, called from my vb.net project.

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


It returns error:

XML
The required operation required requires elevation <Run as administrator>.


Please advise how to manage it.
Thanks
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900