Click here to Skip to main content
Sign Up to vote bad
good
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:
 
The required operation required requires elevation <Run as administrator>.
 
Please advise how to manage it.
Thanks
Posted 16 Feb '13 - 20:35
kfsehgal1.4K


1 solution

  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 310
1 Aarti Meswania 250
2 Sergey Alexandrovich Kryukov 249
3 Slacker007 240
4 Ron Beyer 190
0 Sergey Alexandrovich Kryukov 8,598
1 OriginalGriff 7,024
2 CPallini 3,668
3 Rohan Leuva 3,011
4 Maciej Los 2,343


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 17 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid