install-vmwworkstation.ps1


<#PSScriptInfo
 
.VERSION 1.0
 
.GUID 20ee6b60-98a5-4519-9b4e-3872142b9df6
 
.AUTHOR Karsten.Bott@labbuildr.com
 
.COMPANYNAME
 
.COPYRIGHT
 
.TAGS
 
.LICENSEURI
 
.PROJECTURI
 
.ICONURI
 
.EXTERNALMODULEDEPENDENCIES
 
.REQUIREDSCRIPTS
 
.EXTERNALSCRIPTDEPENDENCIES
 
.RELEASENOTES
 
 
#>


<#
 
.DESCRIPTION
 This script is a helper to download and kick installation of vmware-workstation
 
#>
 
Param()
$Destination = "$HOME/Dowwnloads"
try {
    Start-BitsTransfer "http://www.vmware.com/go/tryworkstation-win" -Description "Downloding Workstation" -Destination $Destination -TransferType Download
}
catch
    {
    write-host "Error Occured"
    }
Rename-Item "$Destination/tryworkstation-win" "$Destination/tryworkstation-win.exe"
Start-Process -FilePath "$Destination/tryworkstation-win.exe" -Wait