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

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.sysinternals.com/ntw2k/freeware/psexec.shtml

The remote account that you use must be a member of the Administrators group on the remote PC. "\\RemotePC" mentioned below can be either the remote PC's name or IP address.

1)Login to the remote PC's IPC$ share with an administrator account.
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


2)Copy your local VNC files to the remote PC.

xcopy "C:\Program Files\RealVNC\*.*" "\\RemotePC\C$\Program Files\RealVNC\*.*" /r/i/c/h/k/e


3)Use Regedit to export the local VNC registry settings to the remote PC.
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"


4)Use PsExec to import the above registry file on the remote PC.

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%

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


5)Use PsExec to install the remote winvnc service.

psexec \\RemotePC -s -i -d "C:\Program Files\RealVNC\WinVNC\winvnc.exe" -install


6)Use PsExec to start the remote "VNC Server" service.

psexec \\RemotePC -s -i -d net start "VNC Server"


Thanks
Naveen

Comments

Popular posts from this blog

Double click a folder open search box

ORA 01172 recovery of thread 1 stuck at block 27269 of file 3 ORA-01151: use media recovery to recover block, restore backup if needed

.net framework 4 has not been installed because hresult 0xc80003f3