netsh命令需要提升 [英] netsh command required elevation

查看:58
本文介绍了netsh命令需要提升的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

推荐答案

参见这个建议 [ ^ ]。


这篇关于netsh命令需要提升的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆