[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6578
  • Last Modified:

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

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.
0
heliontech
Asked:
heliontech
1 Solution
 
KCTSCommented:
0
 
DeNzMoRCommented:
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

http://technet.microsoft.com/en-us/library/bb457070.aspx
http://www.windowsnetworking.com/articles_tutorials/Group-Policy-Deploy-Applications.html

I hope it helps.

Thanks
0
 
amajidkhCommented:
http://www.vncscan.com/

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

mk
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
heliontechAuthor Commented:
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.
0
 
Ron MalmsteadInformation Services ManagerCommented:
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 machine....you 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")
wshShell.run strxcopy & """%programfiles%\OnDemand\WinINSTALL\Packages\VNC4\*.*"" " & """\\"  & strcomputer & "\c$\VNC4\""" & " /Y /I /E"
WScript.Sleep(5000)
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)
wshShell.run 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
0
 
heliontechAuthor Commented:
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
0
 
paul_mountcastleCommented:
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.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now