#86269 - 2002-06-26 10:07 AM
Re: VNC install script
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
ok... this has it working. Thanks Richard (it was your script that I disected to begin with, and just realized the commas in the password had to be removed.. damn binary values)
this is using TightVNC stored on a fileserver, only requires 3 files VNCHOOKS.DLL, WINVNC.EXE, VNCHooks_Settings.reg copied directly from the distribution zip
I'll see about configuring it to push to client machines... perhaps as an admin script to push it, connect to it, upon disconnect remove it.
code:
break on call "\\server\share\udf.kix"
$source = "\\server\share\apps\vnc" $Destination = "%windir%\system32" $key = "HKEY_LOCAL_MACHINE\Software\ORL\WinVNC3\default" $password = "154cb9f7422a55aa"
; ************** Delete prior VNC if exists ****************** WMIService("winvnc","STOP") Shell "$destination\winvnc.exe -kill -remove" $=deltree("HKEY_LOCAL_MACHINE\Software\ORL") $=deltree("HKEY_CURRENT_USER\Software\ORL") del "$destination\VNCHOOKS.DLL" del "$destination\WINVNC.EXE" del "$destination\VNCHooks_Settings.reg"
; ********************* Install VNC ************************** copy "$source\VNCHOOKS.DLL" "$destination" copy "$source\WINVNC.EXE" "$destination" copy "$source\VNCHooks_Settings.reg" "$destination"
regwrite($key,"SocketConnect","1","REG_DWORD") $=WriteValue($key,"AutoPortSelect","1","REG_DWORD") $=WriteValue($key,"InputsEnabled","1","REG_DWORD") $=WriteValue($key,"LocalInputsDisabled","0","REG_DWORD") $=WriteValue($key,"IdleTimeout","0","REG_DWORD") $=WriteValue($key,"QuerySetting","2","REG_DWORD") $=WriteValue($key,"QueryTimeout","10","REG_DWORD") $=WriteValue($key,"Password","$password","REG_BINARY") $=WriteValue($key,"PollUnderCursor","0","REG_DWORD") $=WriteValue($key,"PollForeground","1","REG_DWORD") $=WriteValue($key,"PollFullScreen","0","REG_DWORD") $=WriteValue($key,"OnlyPollConsole","1","REG_DWORD") $=WriteValue($key,"OnlyPollOnEvent","0","REG_DWORD") $=WriteValue($key,"AllowShutdown","0","REG_DWORD") $=WriteValue($key,"AllowConfig","0","REG_DWORD")
shell 'regedit -s $destination\VNCHooks_Settings.reg' Shell "$destination\winvnc.exe -install" WMIService("winvnc","START","Automatic")
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 3139 anonymous users online.
|
|
|