BleepingComputer.com: Install RealVNC and registry entries with GPO

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.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Install RealVNC and registry entries with GPO

#1 User is offline   KamakaZ 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 548
  • Joined: 26-August 08
  • Gender:Male
  • Location:Victoria

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

This post has been edited by KamakaZ: 12 November 2009 - 01:04 AM

If I am helping you and don't reply in 24 hours please send me a PM

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.

#2 User is offline   devil's dent 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 1
  • Joined: 18-November 09

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 User is offline   KamakaZ 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 548
  • Joined: 26-August 08
  • Gender:Male
  • Location:Victoria

Posted 18 November 2009 - 04:55 PM

VNC installs OK, it just wont add the registry settings.
If I am helping you and don't reply in 24 hours please send me a PM

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 User is offline   techextreme 

  • Bleepin Tech
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,072
  • Joined: 09-June 09
  • Gender:Male
  • Location:Pittsburgh, PA

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

Member of the Bleeping Computer A.I.I. early response team!

#5 User is offline   KamakaZ 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 548
  • Joined: 26-August 08
  • Gender:Male
  • Location:Victoria

Posted 11 December 2009 - 12:31 PM

each user is a local admin, so they should be able to edit the registry.
If I am helping you and don't reply in 24 hours please send me a PM

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 User is offline   techextreme 

  • Bleepin Tech
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,072
  • Joined: 09-June 09
  • Gender:Male
  • Location:Pittsburgh, PA

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?

This post has been edited by techextreme: 11 December 2009 - 01:32 PM

Techextreme

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

-- Seneca

Member of the Bleeping Computer A.I.I. early response team!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users