How to install VNC via a remote command prompt on a Windows 2000 computer

Preparation before Installing:

You need to get a copy of the files required by VNC. You can download them here. The VNC executable that I've provided has the added feature of not displaying the VNC icon in the system tray while it's running. If you use the VNC files that I've provided, the initial VNC password will be http://guh.nu    (In the future I'll post instructions on how to set your own password.)

Detailed Instructions:

  1. First you must go to the directory that you want to install VNC into. For example, you could do the following:
    pushd %systemroot%
    cd “\Program Files”
    mkdir vnc
    cd vnc
    
  2. Now you'll need to put the following files onto the remote computer:
    winvnc.exe
    vnchooks.dll
    omnithread_rt.dll
    vnc.reg
    
    One method of doing this via the command line is using the Trivial File Transfer Protocol (TFTP). All Windows 2000 computers by default come with a TFTP client. In order to use TFTP, you'll need to setup a TFTP server on your compuer that contains the files listed above. In order to actually transfer the files to the remote computer via TFTP, you can use a command similar to the following:
    tftp -i guh.nu GET /vnc/* 
    
    Where guh.nu is the name or IP address of the computer you're running the TFTP server on and /vnc/ is the TFTP directory that contains the VNC files listed above. If you can't run a TFTP server on your computer, you can also create a share that contains the VNC files and then use the net start command in order to access the share from the command prompt. In the future I'll add more details on how to setup a TFTP server and also how to use a file share to transfer the needed files onto the remote computer.

  3. Now you need to add the registry settings contained in vnc.reg into the registry. You can do this with the following command:
    regedit -s vnc.reg 
    
    The point of doing this is so that the VNC password will be set. If you do not set the VNC password this way, VNC will not accept any connections until a user at the remote computer chooses a password for VNC.

  4. Now that everything's setup all we have to do is tell VNC to install itself as a service and run it with the following two commands:
    winvnc –install
    winvnc
    
    Installing VNC as a service will cause it to be run whenever the computer is started, even before a user is logged in.

Example Log of Commands:

pushd %systemroot%
cd “\Program Files”
mkdir vnc
cd vnc
tftp -i guh.nu GET /vnc/* 
move omnithread_rd.dll %systemroot%\system32
regedit -s vnc.reg 
winvnc –install
winvnc