有时候朋友或亲戚的电脑有问题,一个挑战是如何远程连接到对方的桌面。其中,利用VNC反向连接是一个快速的方法。可以实现对防火墙内部电脑的远程桌面控制。当然,你自己要在自己的防火墙开发5500端口,并转发到侦听此端口的电脑上。下面是一个脚本的例子,对方只要运行此脚本,就可以连接到你设定的地址上。
IF EXIST "C:Program Filestightvnctvnserver.exe" GOTO STARTSERVICE
msiexec /i "http://www.tightvnc.com/download/2.6.4/tightvnc-2.6.4-setup-64bit.msi" /passive /norestart
:STARTSERVICE
"C:Program Filestightvnctvnserver.exe" -install
"C:Program Filestightvnctvnserver.exe" -start
"C:Program Filestightvnctvnserver.exe" -controlservice -connect 192.168.33.99
IF EXIST "C:Program Filestightvnctvnserver.exe" GOTO STARTSERVICE
msiexec /i "http://www.tightvnc.com/download/2.6.4/tightvnc-2.6.4-setup-64bit.msi" /passive /norestart
:STARTSERVICE
"C:Program Filestightvnctvnserver.exe" -install
"C:Program Filestightvnctvnserver.exe" -start
"C:Program Filestightvnctvnserver.exe" -controlservice -connect 192.168.33.99