Thursday, June 26, 2014

How to enable VNC through Windows 7 firewall from the command line.

This command opens the firewall for VNC.  You may have to modify the program= and profile= options if you are using a different network type or version of VNC.

netsh advfirewall firewall add rule name=VNC dir=in action=allow program="C:\Program Files\uvnc bvba\UltraVnc\winvnc.exe"  description="Incoming VNC" enable=yes profile=domain protocol=any

Stop and disable the Bonjour service from the command line.

I have found that in some instances the Bonjour service really messes up network browsing.  Here's how to stop it and disable it from the command line.

To stop:
net stop "bonjour service"

To disable the service:
sc config "bonjour service" start= disabled