Skip to content

Instantly share code, notes, and snippets.

@sneal
Created October 15, 2014 15:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sneal/eeb52e859186ba44163d to your computer and use it in GitHub Desktop.
Save sneal/eeb52e859186ba44163d to your computer and use it in GitHub Desktop.
Install VMWare tools PowerShell script
$version = '9.6.1'
# from /Applications/VMware Fusion.app/Contents/Library/isoimages/windows.iso
$iso_name = 'vmware_fusion_tools_windows_6.0.3.iso'
$download_url = "http://host.example.com/$iso_name"
(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
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment