Skip to content

Instantly share code, notes, and snippets.

@MattHodge
Created October 25, 2016 20:00
Show Gist options
  • Save MattHodge/9e7d50714bda3ca6b9f02fe0f5b9e166 to your computer and use it in GitHub Desktop.
Save MattHodge/9e7d50714bda3ca6b9f02fe0f5b9e166 to your computer and use it in GitHub Desktop.
if ($env:install_vbox_tools -eq $true)
{
Write-Host "Installing Virtualbox Guest Additions"
certutil -addstore -f "TrustedPublisher" E:\cert\oracle-vbox.cer
Start-Process -FilePath "E:\VBoxWindowsAdditions.exe" -ArgumentList "/S" -Wait
}
else
{
Write-Host "Skipping installation of Virtualbox Guest Additions"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment