>rem Install the service >C:\Progra~1\ORL\VNC\WinVNC.exe -install - and users can't install or start/stop services.
Because of the nature of our environment, all users are local admins so it worked fine for me. This script could be modified to run winvnc.exe - install as admin (I think, it works for other things). You can probably find a script to encode it so you don't have to worry about someone opening the file and seeing the admin password. -- 'set up shell and run command Set oShell = Wscript.CreateObject("WScript.Shell") CmdResult = oShell.run("runas /user:administrator ""net user fred /delete"" ",2,false) ' delay for a second to make sure window is up and running vstart = now do while datediff("s", vstart, now) < 1 wscript.sleep 1000 loop ' now that the window up up we can set focus and send the keystrokes oShell.AppActivate "C:\WINNT\System32\runas.exe" oShell.sendkeys "password~" Set oShell = Nothing -- "Richard Harris" <richard.harris@nott To: [EMAIL PROTECTED] scc.gov.uk> cc: [EMAIL PROTECTED] Sent by: Subject: RE : Deploying VNC to Win2k and XP remotely vnc-list-admin@realv nc.com 09/10/2002 04:50 AM Please respond to vnc-list Hi, > I'm interested to know if this kind of script can work on W2K As far as I know, it won't because the script has this line - >rem Install the service >C:\Progra~1\ORL\VNC\WinVNC.exe -install - and users can't install or start/stop services. With Windows 2k - you could get VNC on the boxes with: 1) Fashpush (sorry for blowing my own trumpet) at www.darkage.co.uk 2) Make a MSI file with the Active Directory toolkit and make it a forced published application to your 2k boxes (no effect on NT4 tho). 3) Or, if you have Novell 4, 5 or 6 - make a zen object and force it on to user workstations via the login script. All of the above options uses extra technology to assume admin rights when the installer kicks off. > I've heard that the logon scripts run under administrative > priviledges, but I've never tested this. Thanks in advance. Not as far as I am aware..... what you could do - and it would be a bit scary - would be to use something like SU or RUNAS and run a VNC installing batch file from the login script. Of course, you run the risk of someone finding your admin password from that, so like I said, it's a bit dodgy. Hope that helps! Later, Richard --------------------------------- Richard Harris Environment IT, NCC Ext 4509 --------------------------------- "Service, price , quality: pick any two." _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list