How to deploy VNC with a log in script or .msi

Posted on 2007-08-03
Last Modified: 2013-11-30
I have a domain with 200 PCs and I would like to deploy VNC 4.1.1 globally from either a login script or a .msi package. I noticed many different articles on this though I wasn't to find out if this has been resolved yet. I have a list of all the PC names in an Excel document. Besides the basic install there are only 4 total configurations that I would need. The password and 3 options checked. I'm willing to give the list of the PC names if that would help. I would need this to work on XP-Pro and W2K OS and possible Vista in the future.
Question by:heliontech
    LVL 70

    Expert Comment


    Expert Comment

    If I was you, I would deploy it with the gpo. You only need to create an group with all the pc in it (not the username) and after that open the GPMC and create a GPO that will push VNC on the next reboot

    Heres a link if you need to know about it

    I hope it helps.

    LVL 4

    Accepted Solution


    59 dollars only and you can manage the vnc connections later on.


    Author Comment

    Additionally I'm looking for something that could possibly generate a reporting feature or something similar that I would let me know which machines actually received the software.
    LVL 25

    Expert Comment

    by:Ron M
    I used a program called Attachmate WinSTALL LE, to create an msi file...This was useful, because it also kept all the settings and the logon password the same for every machine.  Then I have a script that pushed it out to machines during logon.  Winstall LE is very useful for creating msi packages of pretty much any software....

    Example Batch file.... for msi file.

    IF EXIST "\\SERVER\SHARE\LOGON\VNC\%computername%.txt" EXIT
    xcopy "\\SERVER\SHARE\Programs\VNC\*.*" "c:\*.*" /y
    cmd /c c:\VNC4\VNC.MSI /s
    echo %username% > \\SERVER\SHARE\LOGON\VNC\%computername%.txt

    You will have a list of text files by computernames in the folder listed on the echo line....that' way you know which machines have installed it so far...and if you open the text file...which user.

    Also I use a vb script to push out various software packages...  Here's one that I used to remotely install VNC on any domain have to be an administrator to use it though..  The sleep time sometimes need to be adjusted if your installing on machines over a WAN / VPN connection.

    strComputer = InputBox ("Enter the Name or IP Addresss, of the Remote Computer where you want to deploy VNC." , "Target Computer", "",1400,1400)
    strxcopy = "cmd /c xcopy "
    strdel = "cmd /c rd "

    set WshShell = WScript.CreateObject("WScript.Shell") strxcopy & """%programfiles%\OnDemand\WinINSTALL\Packages\VNC4\*.*"" " & """\\"  & strcomputer & "\c$\VNC4\""" & " /Y /I /E"
    Set objWMIService = GetObject("winmgmts:" _
     & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set objSoftware = objWMIService.Get("Win32_Product")
    errReturn = objSoftware.Install("c:\VNC4\VNC4.msi",,True)
    Wscript.Echo errReturn
    if errReturn = 0 then
    WScript.Sleep(30000) strdel & " " & """\\" & strcomputer & "\c$\VNC4\""" & " /S /Q"
    else if errReturn > 0 then
    wscript.Echo "ERROR ! VNC Not installed."
    end if
    end if

    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
    ' Obtain an instance of the the class
    ' using a key property value.
    Set objShare = objWMIService.Get("Win32_Service.Name='WinVNC4'")

    ' no InParameters to define

    ' Execute the method and obtain the return status.
    ' The OutParameters object in objOutParams
    ' is created by the provider.
    Set objOutParams = objWMIService.ExecMethod("Win32_Service.Name='WinVNC4'", "StartService")

    ' List OutParams
    Wscript.Echo "Out Parameters: "
    Wscript.echo "ReturnValue: " & objOutParams.ReturnValue

    Author Comment

    Thank you very much for all of your help but the VNCScan worked perfectly because it intergrated with AD and there was a 30 day trial version which allowed me to install VNC on all the PCs and then I can just continue to use the free version of it

    Expert Comment

    I know this question may be closed, but you do know that Real VNC 4.1.1 has a pretty severe vulnerability, yes? I would suggest using 4.1.2.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
    Remote Desktop Shadowing often has a lot of benefits. When helping end users determine problems, it is much easier to see what is going on, what is being slecected and what is being clicked on. While the industry has many products to help with this,…
    How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now