How to install VNC version 3.3.7 on a remote PC
How to install VNC version 3.3.7 on a remote PC
Introduction:
VNC is a free utility to remotely control another PC, see http://www.realvnc.com for details.
This article assumes that:
- The remote PC is running Windows 2000, 2003, NT4 or XP Pro
(XP Home does not have an IPC$ share as far as I know). - You have administrative rights to the remote PC.
This article also focuses on loading VNC on a remote PC as a service, not as an application.
Step 1: Install VNC locally and set the password.
Download Real VNC and install it on a local PC (for this article, version 3.3.7 was used).
During the installation process, make sure that you check both:
- Register VNC Server as a system service
- Start the VNC system service
Click here for a screen shot.
At the end of the installation process, you will be prompted to set a password.
The password that you set here will later be used to connect the remote PC.
If for some reason you aren’t prompted for the password, run the following from the command line:
“C:\Program Files\RealVNC\WinVNC\winvnc.exe” -defaultsettings
Also run net start from the command line and confirm VNC Server is running as a service
Step 2: Configure VNC on the remote PC using PsExec
PsExec is a freeware tool to execute processes on a remote PC and is needed for this procedure:
http://www.microsoft.com/technet/sysinternals/Utilities/PsExec.mspx
- Login to the remote PC’s IPC$ share with an administrator account.
- Copy your local VNC files to the remote PC.
- Use Regedit to export the local VNC registry settings to the remote PC.
- Use PsExec to import the above registry file on the remote PC.
- Use PsExec to install the remote winvnc service.
- Use PsExec to start the remote “VNC Server” service.
If you don’t include the password in plain text, you will be prompted to supply the password (which will not be displayed as plain text).
NET USE \\RemotePC\IPC$ /user:administrator password
xcopy “C:\Program Files\RealVNC\*.*” “\\RemotePC\C$\Program Files\RealVNC\*.*” /r/i/c/h/k/e
Note: If you prefer you can export the file locally and then copy it.
regedit /e “\\RemotePC\C$\vncdmp.txt” “HKEY_LOCAL_MACHINE\Software\ORL”
psexec \\RemotePC -s -i -d %windir%\regedit /s C:\vncdmp.txt
Make sure to use the /s switch with regedit so that confirmation isn’t required on the remote PC.
You are using regedit on the remote PC to perform this command. If the path for regedit is different on the remote PC, use the exact path instead of %windir% (local, not remote environmental variable).
Example: If the local PC is running XP Pro and the remote PC is Windows 2000, use this command:
psexec \\RemotePC -s -i -d C:\Winnt\regedit /s C:\vncdmp.txt
psexec \\RemotePC -s -i -d “C:\Program Files\RealVNC\WinVNC\winvnc.exe” -install
psexec \\RemotePC -s -i -d net start “VNC Server”
You should now be able to use VNC to control the remote PC.
Categorised as: Networking, Password
Leave a Reply
You must be logged in to post a comment.