Answers for "download and install virtualbox with powershell"

0

download and install virtualbox with powershell

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;$vBoxURL = "https://download.virtualbox.org/virtualbox";Invoke-WebRequest -Uri "$vBoxURL/LATEST-STABLE.TXT" -OutFile "$env:TEMP\virtualbox-version.txt";$version = ([IO.File]::ReadAllText("$env:TEMP\virtualbox-version.txt")).trim();$vBoxList = Invoke-WebRequest "$vBoxURL/$version";$vBoxVersion =$vBoxList.Links.innerHTML;$vBoxFile = $vBoxVersion | select-string -Pattern "-win.exe";$vBoxFileURL = "$vBoxURL/$version/$vBoxFile";Invoke-WebRequest -Uri $vBoxFileURL -OutFile "$env:TEMP\$vBoxFile";start-process ("$env:TEMP\$vBoxFile") --silent;
Posted by: Guest on December-16-2020

Code answers related to "download and install virtualbox with powershell"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language