Highlighted
Expert
Expert

powercli to install vmware tools on windows 7

Hello,

i need to install vmware tools on few windows 7 vms

i came across

https://communities.vmware.com/servlet/JiveServlet/previewBody/12413-102-3-13329/VMware%20Tools%20-%...

ie

msiexec /i "VMware Tools.msi" ADDLOCAL=ALL REMOVE="Hgfs,WYSE,GuestSDK,vmdesched" /qn /l* C:\temp\toolsinst.log /norestart

Also something of sort below ..

https://gist.github.com/sneal/eeb52e859186ba44163d

(New-Object System.Net.WebClient).DownloadFile($download_url, "c:\windows\temp\$iso_name")
&c:\7-zip\7z.exe x "c:\windows\temp\$iso_name" -oc:\windows\temp\vmware -aoa | Out-Host

&c:\windows\temp\vmware\setup.exe /S /v`"/qn REBOOT=R`" |


Out-Host

i have used,

Mount-Tools,

And have mounted the ISO

Can somehow we can do this automation with powercli or powershell ?

I want to use domain id & if that does not work a local admin account to comeplete the install.

0 Kudos
21 Replies
Highlighted
Expert
Expert

No luck.

No errors too

i did below on local

    $CDRom = Get-WmiObject -class Win32_CDROMDrive | select Drive | ForEach {$_.Drive}

    $setExe = '\setup.exe'

    $arguments = '-s -v  ADDLOCAL=ALL REBOOT=R'

    $ExecuteEXE = Join-Path -Path $CDRom -ChildPath $setExe

    Start-Process -FilePath $executeEXE -ArgumentList $arguments

0 Kudos
Highlighted
User Moderator
User Moderator

And what if you just run "<cd-drive>:\setup.exe -v  ADDLOCAL=ALL REBOOT=R" from the command line?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos