Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
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.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Install RealVNC and registry entries with GPO


  • Please log in to reply
5 replies to this topic

#1 KamakaZ

KamakaZ

  • Members
  • 739 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Victoria
  • Local time:03:29 PM

Posted 12 November 2009 - 01:03 AM

I have the following in a batch file which is in the logon script section of a Group Policy Object for specific users.

@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??

Edited by KamakaZ, 12 November 2009 - 01:04 AM.

There's no place like 127.0.0.1
There are 10 types of people in the world, those that can read binary, and those who can't.


BC AdBot (Login to Remove)

 


#2 devil's dent

devil's dent

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:11:29 AM

Posted 18 November 2009 - 12:38 AM

Try to check if there are another remote software is installed and is the firewall is active.
If you have another remote software installed, such as Tight VNC you you should uninstalled it first. VNC as i know, cannot start when Tight VNC is installed.
If your firewall is active, try to disable it first.


Edit: Edited to remove unnecessary quote. ~ tg

#3 KamakaZ

KamakaZ
  • Topic Starter

  • Members
  • 739 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Victoria
  • Local time:03:29 PM

Posted 18 November 2009 - 04:55 PM

VNC installs OK, it just wont add the registry settings.

There's no place like 127.0.0.1
There are 10 types of people in the world, those that can read binary, and those who can't.


#4 techextreme

techextreme

    Bleepin Tech


  • Members
  • 2,125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Pittsburgh, PA
  • Local time:12:29 AM

Posted 11 December 2009 - 10:13 AM

Is it possible you need to elevate permissions when importing registry entries for a given user?
Techextreme

"Admire those who attempt great things, even though they fail."

-- Seneca

#5 KamakaZ

KamakaZ
  • Topic Starter

  • Members
  • 739 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Victoria
  • Local time:03:29 PM

Posted 11 December 2009 - 12:31 PM

each user is a local admin, so they should be able to edit the registry.

There's no place like 127.0.0.1
There are 10 types of people in the world, those that can read binary, and those who can't.


#6 techextreme

techextreme

    Bleepin Tech


  • Members
  • 2,125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Pittsburgh, PA
  • Local time:12:29 AM

Posted 11 December 2009 - 01:32 PM

Original

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"

Changed

xcopy \\sbserver\VNC\Installer C:\VNC /e /q
cd vnc
start /wait vnc-4_1_3-x86_win32.exe /SILENT /COMPONENTS="!vncviewer, winvnc" /TASKS="installservice, launchservice"
regedit.exe /S vnc.reg

echo ****************
echo DONE
echo ****************
cd..

Would the changes I made from your original help?

Edited by techextreme, 11 December 2009 - 01:32 PM.

Techextreme

"Admire those who attempt great things, even though they fail."

-- Seneca




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users