window中添加防火墙过滤端口

netsh firewall add portopening TCP 5909 vnc5909

上面是添加tcp 5909端口过滤

 

删掉service服务命令

cd /d C:\Program Files\UltraVNC\
winvnc.exe -uninstall
cd /d C:\Documents and Settings\Administrator\桌面\veno3
winvnc.exe -install

 

启动服务与停止服务

net start uvn_service
net stop uvnc_service


命令参考:

Filename: net; Parameters: stop uvnc_service; Flags: runhidden waituntilterminated
Filename: {app}\WinVNC.exe; Parameters: -uninstall; Flags: runhidden waituntilterminated
Filename: {sys}\netsh; Parameters: firewall delete portopening TCP 5909 vnc5909; Flags: runhidden; MinVersion: 0,5.01;
Filename: {sys}\netsh; Parameters: firewall delete portopening TCP 5809 vnc5809; Flags: runhidden; MinVersion: 0,5.01;
Filename: {sys}\netsh; Parameters: "firewall delete allowedprogram program=""{app}\vncviewer.exe"""; Flags: runhidden; MinVersion: 0,5.01;





 

 

 

 

 

转载于:https://www.cnblogs.com/xiaozl/archive/2012/09/07/2675235.html

你可能感兴趣的:(window中添加防火墙过滤端口)