rem reset netsh advfirewall reset rem allow ping netsh advfirewall firewall delete rule name="ICMP Allow incoming V4 echo request" netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow rem Port TCP 5900 - VNC netsh advfirewall firewall delete rule name="Port TCP 5900 in" netsh advfirewall firewall add rule name="Port TCP 5900 in" dir=in action=allow protocol=TCP localport=5900 netsh advfirewall firewall delete rule name="Port TCP 5900 out" netsh advfirewall firewall add rule name="Port TCP 5900 out" dir=out action=allow protocol=TCP localport=5900