Hello,
i need to install vmware tools on few windows 7 vms
i came across
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,
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.
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
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