I have the following in a batch file which is in the logon script section of a Group Policy Object for specific users.
It copies fine and installs the program fine, but for some reason won't import the registry entries. However if i run the batch file from \\sbserver\vnc\installer it runs fine and registry settings are imported.
Any idea's??
@ECHO OFF :START IF %COMPUTERNAME% == SBSERVER goto Z IF %COMPUTERNAME% == MERCURY goto Z IF EXIST \\sbserver\VNC\Installed\%COMPUTERNAME%.txt GOTO A :B md C:\VNC xcopy \\sbserver\VNC\Installer C:\VNC /e /q C:\VNC\vnc-4_1_3-x86_win32.exe /SILENT /COMPONENTS="!vncviewer, winvnc" /TASKS="installservice, launchservice" regedit.exe /S "C:\VNC\vnc.reg" echo Ran by: %USERNAME% on %DATE% at %TIME% >> \\sbserver\VNC\Installed\%COMPUTERNAME%.txt cls echo **************** echo DONE echo **************** ping 127.0.0.1 -n 3 -w 90000 > nul ping 127.0.0.1 -n %3% -w 90000> nul rd /s C:\VNC\ /q ::"C:\Program Files\RealVNC\VNC4\winvnc4.exe" -noconsole DisableClose=1 DisableOptions=1 exit :A cls IF EXIST "C:\Program Files\RealVNC\VNC4\winvnc4.exe" GOTO INSTALLED GOTO B :INSTALLED echo **************** echo NO ACTION NEEDED echo **************** ping 127.0.0.1 -n 3 -w 90000 > nul ping 127.0.0.1 -n %3% -w 90000> nul exit :Z echo *********************** echo CANT INSTALL ON SERVER echo *********************** ping 127.0.0.1 -n 3 -w 90000 > nul ping 127.0.0.1 -n %3% -w 90000> nul exit
It copies fine and installs the program fine, but for some reason won't import the registry entries. However if i run the batch file from \\sbserver\vnc\installer it runs fine and registry settings are imported.
Any idea's??
This post has been edited by KamakaZ: 12 November 2009 - 01:04 AM

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Back to top








