Remotely Install VNC

17 Nov
Install VNC locally - register server as system service, start VNC system service, set password.

NET USE \\RemotePC\IPC$ /user:administrator password

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

regedit /e "\\RemotePC\C$\vncdmp.txt" "HKEY_LOCAL_MACHINE\Software\ORL"

psexec \\RemotePC -s -i -d %windir%\regedit /s C:\vncdmp.txt

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

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

del \\RemotePC\C$\vncdmp.txt

test connection to computer.