VMware
1 2 Previous Next 15 Replies Last post: Mar 21, 2005 4:48 AM by Mike_Laverick  

Silent Install of VM Guest tools via AD posted: Mar 1, 2005 6:49 AM

Click to view Mike_Laverick's profile Virtuoso 4,064 posts since
Jan 5, 2004
Hi all,

I have been reading round the topic on the forum - for how to install/upgrade the VMware Tools silently.

msiexec -i "c:\vmtools\vmware tools.msi" addlocal=all /qn REBOOT="ReallySuppress"

and so on do this fine...

But personally I would perfer to do this via an AD policy rather than a scripted method - otherwise you have to deal with "RunOnce" enteries and "Autologon" or vbs scripts...

I've uploaded the full VMware tools to a file server and tried pushing out the installation with policy that just effects my Windows Virtual Machines. I have used Microsoft Software installations at a Computer Configuration level. I have not made any modification to the MSI (Yet!)

I've lowered driver signing by a policy (Default Domain) to (c) Ignore... as outlined in MS KB Q298503. I have double-checked to make sure that this setting has applied properly..

However, AD Software Policy doesn't work and the installation fails - the booting VM finds the policy, and claims to install it. But it fails to install the GUI or VMware Service...

This is what event viewer says:

"The Group Policy client-side extension Software Installation failed to execute. Please look for any errors reported earlier by that extension."

and

"Failed to apply changes to software installation settings. Software changes could not be applied. A previous log entry with details should exist. The error was : The installation source for this product is not available. Verify that the source exists and that you can access it."

I can however manual connect to the file share and run the MSI manually.

I think that the MSI needs editing in a tool like Orca2.0 from the MS SDK for MSI to make it a silent install. My problem is I don't which fields to edit or modify in the MSI.

Or it could be something else...

Can anyone help me on this...?

Mike
ps the vm's Windows 2003 VM's (unpatched), im running ESX2.5

Re: Silent Install of VM Guest tools via AD

1. Mar 2, 2005 2:52 AM in response to: Mike_Laverick
Click to view vangoge's profile Hot Shot 220 posts since
Apr 11, 2004
Hi Mike,

Can you try to install this via AD with this command line: msiexec -i "c:\vmtools\vmware tools.msi" addlocal=all /qn REBOOT="ReallySuppress" /l*v C:\VMTolsInstall.log This will make a log file C:\VMTolsInstall.log where you can find what goes wrong.

Another thing is there are unsigned drivers that you need to approce. Swithc this off in W2K do the install and swith back on.

GERT

Re: Silent Install of VM Guest tools via AD

2. Mar 2, 2005 7:59 AM in response to: Mike_Laverick
Click to view Samcer's profile Expert 523 posts since
Aug 25, 2004
wouldn't be easier to install a new Server, install vmtools, sysprep (template created) and deploy the template?
On the other hands you may try to use InstallShield AdminStudio...
Sam

Re: Silent Install of VM Guest tools via AD

6. Mar 8, 2005 1:36 PM in response to: Mike_Laverick
Click to view Radico's profile Novice 30 posts since
Mar 1, 2005
Hi,

Just a guess but I believe AD policies run software installs in the context of the local system account. The section where you are prompted to modify the video settings which requires user input could be the problem.

You could use an AD GPO computer startup script which also runs as system and launch it via a vbs script which would happen just after the first console login.

Re: Silent Install of VM Guest tools via AD

7. Mar 8, 2005 3:06 PM in response to: Radico
Click to view sbeaver's profile Guru 7,719 posts since
Nov 1, 2004
It looks like you are installing this as a machine policy and that may also be the issue it might have to be a user policy. I do not know for sure just trying to offer avenues to explore.

Steve

Re: Silent Install of VM Guest tools via AD

10. Mar 10, 2005 12:12 PM in response to: Mike_Laverick
Click to view Radico's profile Novice 30 posts since
Mar 1, 2005
One thing I have noticed is that you need to wait for the install to finish or for some strange reason it never finishes, this is a excerpt of what I used to install a desktop management client through computer startup scripts.

Const WAIT=1
strcommand="msiexec.exe /whatever..."
objshell.run strCommand,0,WAIT

Re: Silent Install of VM Guest tools via AD

12. Mar 11, 2005 12:02 PM in response to: Mike_Laverick
Click to view Radico's profile Novice 30 posts since
Mar 1, 2005
Try this Option Explicit
On Error Resume Next
Const WAIT=1
Const NOWAIT=0

Dim sstrVersion
Dim objShell
Dim objNetwork

sstrVersion = ScriptEngineMajorVersion
if sstrVersion >= "5" then
set objshell=wscript.createobject("wscript.shell")
Set objNetwork = WScript.CreateObject("WScript.Network")
'you might not need this next line
objNetwork.mapnetworkdrive "","\\domaincontroller\IPC$",false,"domain\username","password"
objshell.run "msiexec.exe /i \\domaincontroller\netlogon\subdir\msifile.msi",0,WAIT
set objShell=nothing
Set objNetwork=nothing
end if

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities