VMware Server 1.0.1 Package question
I'm working on consolidating all commonly requested software (as well as all software that we preinstall) into sms packages. I read the appdeploy package page for vmware server, but the commands given specify a serial number. Problem is, the serial number isn't a volume license number, we have ~200 licenses to distribute to any employee here who needs one.
So here are my questions:
-- If I remove the part that specifies a serial number, will it prompt for one?
-- Is there a way to have the msi installer pull the serial numbers from a database (they are currently in a mysql table)?
Perhaps VMware doesn't care if you use the same license key on all your computers as long as you have the needed licenses, but it just doesn't feel right.
thanks a ton! I think this is my first post on here :)
-Chris
So here are my questions:
-- If I remove the part that specifies a serial number, will it prompt for one?
-- Is there a way to have the msi installer pull the serial numbers from a database (they are currently in a mysql table)?
Perhaps VMware doesn't care if you use the same license key on all your computers as long as you have the needed licenses, but it just doesn't feel right.
thanks a ton! I think this is my first post on here :)
-Chris
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
jmcfadyen
17 years ago
Create an XML file such as this
<Serials>
<Computer Name="comp1" Serial="xxxx-xxxx-xxxx-xxxx1" />
<Computer Name="comp2" Serial="xxxx-xxxx-xxxx-xxxx2" />
<Computer Name="comp3" Serial="xxxx-xxxx-xxxx-xxxx3" />
<Computer Name="comp4" Serial="xxxx-xxxx-xxxx-xxxx4" />
</Serials>
Setup a vbs CA which reads this im gonna rattle this off my head so you may need to mess with the code a lil
strSource = session.property("SourceDir")
set objXML = CreateObject("MSXML.Document")
objXML.Load strSource & "serials.xml
set objDoc = objXML.DocumentElements
set objNet = CreateObject("Wscript.Network")
strComp = objNet.Computername
objNodeSerial = objDoc.SelectSingleNode("//Computer")
for each objNodeComputer in objNodeSerial.Childnodes
strComputerName = objNodeComputer.GetAttribute("Name")
strSerial = objNodeComputer.GetAttribute("Serial")
dicList.add strComputername, strSerial
next
strExists = dicList(strComputerName)
if strExists <> "" then session.property("SERIAL") = dicList(strComputername)
something like that should nail it.
im sure you get the idea
<Serials>
<Computer Name="comp1" Serial="xxxx-xxxx-xxxx-xxxx1" />
<Computer Name="comp2" Serial="xxxx-xxxx-xxxx-xxxx2" />
<Computer Name="comp3" Serial="xxxx-xxxx-xxxx-xxxx3" />
<Computer Name="comp4" Serial="xxxx-xxxx-xxxx-xxxx4" />
</Serials>
Setup a vbs CA which reads this im gonna rattle this off my head so you may need to mess with the code a lil
strSource = session.property("SourceDir")
set objXML = CreateObject("MSXML.Document")
objXML.Load strSource & "serials.xml
set objDoc = objXML.DocumentElements
set objNet = CreateObject("Wscript.Network")
strComp = objNet.Computername
objNodeSerial = objDoc.SelectSingleNode("//Computer")
for each objNodeComputer in objNodeSerial.Childnodes
strComputerName = objNodeComputer.GetAttribute("Name")
strSerial = objNodeComputer.GetAttribute("Serial")
dicList.add strComputername, strSerial
next
strExists = dicList(strComputerName)
if strExists <> "" then session.property("SERIAL") = dicList(strComputername)
something like that should nail it.
im sure you get the idea
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.