VNC Enable/Disable

blemoine

Senior member
Jul 20, 2005
312
0
0
i have a network with two branch offices connected with a PPTP T1. I need to have vnc installed on the workstations so i can remote manage but i can't i have the service running when it is not being used. The users are not very afraid of the computers as it is so i can't step them through enableing services or installing and uninstalling this. i also would love to use Remote Desktop connection in windows xp but they have to be able to see what i am doing the whole time. this is a high security enviroment. i was wondering if anyone knew of a simple way i can get VNC enabled and disabled. i was thinking maybe a batch file. i would love to hear any ideas. you can email me at brian_lemoine@hotmail.com if you need anymore info. thanks
 

sykopath79

Senior member
Nov 2, 2000
458
0
0
Easily done with a batch file. Services are started and stopped via command line using the command net start "service name" and net stop "service name".

First, go into the Services control panel (either from Administrative Tools, or Start -> Run, type services.msc). Set the VNC service to Manual so that it won't run unless you tell it to.

Now, you just need two batch files. One to start the service:
@net start "VNC Server"

...and one to stop the service:
@net stop "VNC Server"

If the name of the service has a space in it, you will need to use quotes around the name otherwise it will try to interpret it as separate arguments being passed to the net command.

Hope this helps.
 

blemoine

Senior member
Jul 20, 2005
312
0
0
Your a genius!!! Or I am an idiot.. either way thanks for the help. it works great. i am trying to idiot proof things here