Deploy TightVNC – Multiple ways

This is intended to be done remotely, so First a batch file, then psExec, then GPO, then maybe we’ll get more clever (TightVNC *is* open source…). We just need to define the steps and understand them well.
1. Batch file

installTightVncNoInteraction.bat

 

 

rem make a working directory, I use the same one for pretty much everything.
mkdir C:\root
rem Use powershell to download the executable. We'll name it tVncIns.msi
powershell -command "& { iwr https://www.tightvnc.com/download/2.8.8/tightvnc-2.8.8-gpl-setup-64bit.msi -OutFile c:\root\tVncIns.msi}"
rem install it. We really need to add a 1st and second step in the batch file to grab a hashed password or to ask the user for input, this is iteration no. 1. I'll improve it later.
msiexec /i tVncIns.msi /quiet norestart ADDLOCAL=Server /SET_LOGLEVEL=1 /SET_RUNCONTROLINTERFACE=1 /SET_USEVNCAUTHENTICATION=1 /VALUE_OF_USEVNCAUTHENTICATION=1 /SET_PASSWORD=1 /VALUE_OF_PASSWORD=PASS

 

More information about install time command line switches can be found here.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.