Hi,
sorry, it is in french, but if you search in the archives, you can have the
original mail posted here in English.
*******************
Salut,
j'ai fait un script avec un australien qui fait ca :
Pour l'utiliser, il faut d'abord installer vnc sur une machine de reference
(pc-image).
Sur cette machine, tu copies WinVNC.exe, omnithread_rt.dll et vnchooks.dll
dans
system32 (je crois que l'un d'eux y est deja mis par l'installation).
Dans une fenetre de commande, tu installes winvnc en service (winvnc
-install)
et tu modifies les options que tu veux avoir partout (le mot de passe par
exemple ...).
Si tu ne veux pas que tes utilisateurs puissent arreter ou modifier la config
de
vnc, il faut aller dans la base de registre :
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]
"AllowProperties"=dword:00000000
"AllowShutdown"=dword:00000000
Si tu veux limiter l'acces a certaine adresses (fortement recommande !) :
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3]
"AuthHosts"="-:+x.y.z.t:+xx.yy.zz"
avec : - disant qu'aucune IP par defaut n'est autorisee
+x.y.z.t disant que la machine x.y.z.t est autorisee
+xx.yy.zz disant que le sous reseau xx.yy.zz est autorise.
Le script ci dessous permet d'installer une nouvelle version, mais aussi de
mettre a jour une ancienne.
Tu peux aussi utiliser ntbatchvnc.bat pour installer une liste de machine.
ntvnc.bat :
---------
@echo off
REM *** Developed by John Blyth, Carnarvon, Western Australia
(jblyth@cheerful.com)
REM *** With Francis Vivat, France (francis.vivat@cetp.ipsl.fr)
REM *** PLEASE LET US KNOW OF ANY IMPROVEMENTS/SUGGESTIONS!!
REM *** Next 3 lines generate result files if needed - (if not using
NTBatchVNC.bat)
if not exist success.txt echo WinVNC Sucessfully Installed > success.txt
if not exist error.txt echo Computers not Found > error.txt
if not exist Previous.txt echo Current Version Previously Installed - Not
Updated > Previous.txt
cls
REM *** DON'T FORGET TO EDIT THE SET COMMANDS
REM *** Server being used to supply registry settings and files
set serv=\\pc-image
REM *** Directory on server to get WinVNC from
set VNCfile="%serv%\c$\winnt\system32"
REM *** NT Directory on Remote PC
for /F "tokens=2 delims=\" %%i in ('reg query
"hklm\software\microsoft\windows
nt\currentversion\systemroot" \\%1') do set sysroot=%%i
REM *** Version Number for WinVNC
set version=3.3.3
REM *** DON'T EDIT THESE SET COMMANDS
set Destfile=\\%1\c$\%sysroot%\system32
set servicepath=c:\%sysroot%\system32\winvnc.exe
echo Server = %Serv%
echo Server Program Directory = %VNCFile%
echo Version Checker Set to = %Version%
if "%1" == "" goto ExitInst
echo Destination for Files = %Destfile%
echo Path to Service = %Servicepath%
if not exist %destfile%\*.exe goto ExitErr
REM *** CHECKS VERSION. DOES NOT UPGRADE UNLESS UPGRADE IN THE COMMAND LINE
WHEN
NOT USING NTBatchVNC.BAT
reg query hklm\software\orl\vnc\%version% %1
if errorlevel 2 goto Upgrade
if errorlevel 0 goto current
:current
echo Version %version% Installed
echo.
if "%2" == "upgrade" goto Upgrade
echo WinVNC %version% for %1 already Installed
echo WinVNC %version% for %1 already Installed >> Previous.txt
goto exit
:Upgrade
echo Please Wait ...
if "%2" == "upgrade" echo Upgrading Now
echo Stopping WinVNC Service
echo -----------------------
sc \\%1 stop winvnc
echo.
echo Removing WinVNC Service
echo -----------------------
sc \\%1 delete WinVNC
echo.
echo Removing Previous Version
echo -------------------------
del \\%1\c$\%sysroot%\system\omnithread_rt.dll
del \\%1\c$\%sysroot%\system\vnchooks.dll
del \\%1\c$\%sysroot%\system\winvnc.exe
del \\%1\c$\%sysroot%\system\iplist.txt
del %Destfile%\omnithread_rt.dll
del %Destfile%\vnchooks.dll
del %Destfile%\winvnc.exe
del %Destfile%\iplist.txt
echo.
echo Loading New Version
echo -------------------
copy %VNCFile%\winvnc.exe %Destfile%
copy %VNCFile%\omnithread_rt.dll %Destfile%
copy %VNCFile%\vnchooks.dll %Destfile%
echo.
echo Replacing Registry Settings
echo ---------------------------
set CLE=HKLM\Software\ORL
reg DELETE %CLE% \\%1 /FORCE
reg COPY %CLE% %Serv% %CLE% \\%1
set CLE=HKLM\Software\Microsoft\Windows\CurrentVersion\Run\WinVNC
reg DELETE %CLE% \\%1 /FORCE
reg ADD %CLE%="winvnc.exe -servicehelper" \\%1
echo.
echo Installing WinVNC Service
echo -------------------------
sc \\%1 create WinVNC binpath= "%servicepath% -service" type= own type=
interact
start= auto
echo.
echo Starting WinVNC Service
echo -----------------------
sc \\%1 start winvnc
echo.
echo WinVNC Installed to %1
echo WinVNC Installed to %1 >> success.txt
echo.
goto exit
:ExitErr
Echo.
Echo.
Echo ERROR ! - Computer %1 Not Found......
echo ERROR ! - Computer %1 Not Found...... >> error.txt
echo.
echo.
goto exit
:ExitInst
Echo.
Echo USAGE - NTVNC Computername [upgrade]
Echo (upgrade : If required -FORCES UPGRADE)
Echo ex : NTVNC pc-nt4
Echo ex : NTVNC pc-nt4 upgrade
Echo.
Pause
echo.
:Exit
ntbatchvnc.bat :
--------------
@echo off
REM *** Developed by John Blyth, Carnarvon, Western Australia
(jblyth@cheerful.com)
REM *** PLEASE LET ME KNOW OF ANY IMPROVEMENTS/SUGGESTIONS!!
REM *** SET upgrade to upgrade (all lower case to force upgrade to all
computers) ****
set upgrade=no
echo WinVNC Sucessfully Installed > success.txt
echo Computers not Found > error.txt
echo Current Version Previously Installed - Not Updated > Previous.txt
REM *** ADD A LIST OF YOUR NT MACHINES BELOW THIS LINE
Call NTVNC NTComputer1 %upgrade%
Call NTVNC NTComputer2 %upgrade%
:exit
call notepad.exe error.txt
call notepad.exe Success.txt
call notepad.exe Previous.txt
Voila, c'est tout !
Remarque : il faut avoir le Ressource Kit pour que ca fonctionne (reg.exe,
sc.exe)
A+
. \)|(/
. (o o)
. /-----------------ooO----(_)----Ooo-----------------\
.(_| Francis VIVAT |
. | CETP-CNRS |
. | 4, avenue de Neptune 94107 St Maur Cedex |
. | Tel : +33 1 4511 4274 |
. | Fax : +33 1 4889 4433 |
. | 10-12, avenue de l'Europe 78140 Velizy |
. | Tel : +33 1 3925 4780 |
. | Fax : +33 1 3925 4922 |_
. | E-Mail : francis.vivat@cetp.ipsl.fr | )
. \---------------------------------------------------/
. (_) (_)
*************************
----- Message d'origine -----
De : "SEMERIVA Luc" <lsemeriva@mairie-marseille.fr>
@ : <windows-nt-fr@cru.fr>
Envoyi : jeudi 3 ao{t 2000 11:47
Objet : VNC
> Comment on peut installer VNC sur un serveur distant ?
> Merci
>
----- Message d'origine -----
De : "Kenneth Foster" <fosterk@aenigma.net>
@ : <vnc-list@uk.research.att.com>
Envoyi : mercredi 9 ao{t 2000 09:22
Objet : RE: RE(2): Deployment
> I would like a copy too.
> fosterk@aenigma.net.
>
> Or you could put it on a server and point all the rest of us "me toos" to
> it.
>
>
> Ken Foster
>
> -----Original Message-----
> From: owner-vnc-list@uk.research.att.com
> [mailto:owner-vnc-list@uk.research.att.com]On Behalf Of
> natalia_llima@hp.com
> Sent: Wednesday, August 09, 2000 3:00 AM
> To: vnc-list@uk.research.att.com
> Subject: RE: RE(2): Deployment
>
>
> >Here you Ian, sorry the first one got rejected, the second file is a zip
> >file....
>
> >You'd better re-copy that attachment to him privately, the list software
> >strips all attachments.
>
> Could you also send the zip file to me.
>
> Thanks
>
> Nat`lia
>
>
> --------------------------------------------------------------
> from: Jonathan "Chromatix" Morton
> mail: chromi@cyberspace.org (not for attachments)
> uni-mail: j.d.morton@lancaster.ac.uk
>
> The key to knowledge is not to rely on people to teach you it.
>
> Get VNC Server for Macintosh from http://chromatix.autistics.org/vnc/
>
> -----BEGIN GEEK CODE BLOCK-----
> Version 3.12
> GCS$/E/S dpu(!) s:- a19 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$ V? PS
> PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r- y+
> -----END GEEK CODE BLOCK-----
> ---------------------------------------------------------------------
> To unsubscribe, send a message with the line: unsubscribe vnc-list
> to majordomo@uk.research.att.com
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, send a message with the line: unsubscribe vnc-list
> to majordomo@uk.research.att.com
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, send a message with the line: unsubscribe vnc-list
> to majordomo@uk.research.att.com
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo@uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
-----------------------------------------
TridiaVNC - http://www.tridiavnc.com/
This archive was generated by hypermail 2b29 : 2024 - 07:47:47 EDT