Skip to content

Instantly share code, notes, and snippets.

@danielxvu
Last active April 8, 2020 02:57
Show Gist options
  • Save danielxvu/9e405cb538881c2fcb85a34fcb0e5962 to your computer and use it in GitHub Desktop.
Save danielxvu/9e405cb538881c2fcb85a34fcb0e5962 to your computer and use it in GitHub Desktop.
#Requires -RunAsAdministrator
$enableOpenVpnInstall = $true
if ($enableOpenVpnInstall) {
if (Get-Command "scoop" -ErrorAction SilentlyContinue) {
scoop bucket add extras
scoop install openvpn openssl
}
else {
Write-Host "Package installation aborted."
Write-Host "Unable to find scoop in your PATH. Get the scoop package manager from https://scoop.sh/ if not already installed."
}
}
else {
Write-Host "User opted out of OpenVPN installation."
}
Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName Microsoft-Hyper-V -All
Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName Microsoft-Windows-Subsystem-Linux
Write-Host 'Make sure to restart your computer if required.';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment