Get the App
SLTechnology News&Howtos  ›  Servers  › 

TightVNC on-premises deployment

Shulou Source: shulou.com Published: 2022-06-02 23:52:11 10月01日 Update

Installation script

The installation package is placed on the ftp server, downloaded using ftp, and then silently installed using msiexec

@ echo offRem create directory mkdir c:\ tempRem to obtain network card information and store it on a separate ftp (optional) ipconfig / all > > c:\ temp\% username%.txtRem upload network card information echo open 10.10.29.107 > putip.txt Rem ftpuser is account test.test is password echo user ftpuser test.test > > putip.txt echo binary > > putip.txt echo put "c:\ temp\% username%.txt" > putip.txt echo bye > > putip.txt ftp-n-s:putip.txt del Putip.txtrem download vncRem to determine whether the system is 64-bit, download the 64-bit installation package Otherwise download 32-bit installation package if "% PROCESSOR_ARCHITECTURE%" = = "AMD64" (set tightvnc=tightvnc288x64.msi) else (set tightvnc=tightvnc288x86.msi) echo open 10.10.50.3 > ftp.txt Rem ftpuser account test.test is password echo user ftpuser test.test > > ftp.txt rem dfws.2016 > > ftp.txt echo cd "/ data sharing library / office software / 00. Installation must be / vnc "> > ftp.txtecho lcd" c:/temp "> ftp.txtecho binary > > ftp.txtecho get% tightvnc% > > ftp.txtecho bye > > ftp.txtftp-n-s:ftp.txtdel ftp.txtrem install vncRem silent installation parameters, ^ is batcontinuation character ADDLOCAL is chosen to install the client Server is the server, Client is the client Rem and sets three passwords simultaneously is test.9999 the first is the primary password The second is the connection password and the third is the administrator password .msiexec.exe / I c:\ temp\% tightvnc% / qb / norestart ^ ADDLOCAL=Server SET_USEVNCAUTHENTICATION=1 VALUE_OF_USEVNCAUTHENTICATION=1 ^ SET_PASSWORD=1 VALUE_OF_PASSWORD=test.9999 ^ SET_VIEWONLYPASSWORD=1 VALUE_OF_VIEWONLYPASSWORD=test.9999 ^ SET_USECONTROLAUTHENTICATION=1 VALUE_OF_USECONTROLAUTHENTICATION=1 ^ SET_CONTROLPASSWORD=1 VALUE_OF_CONTROLPASSWORD=test.9999 Rem prompts If errorlevel 1 (mshta _ vbscript:msgbox ("installation VNC failed", 64 "prompt") (window.close) else (mshta _ vbscript:msgbox ("install VNC successfully", 64, "prompt") (window.close))

Tags: Password prompt success information customer client network card account service three office software parameters at the same time server directory administrator system script data data sharing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker Redmi OPPO Reno Shulou Technology