Last active
April 8, 2020 02:57
-
-
Save danielxvu/9e405cb538881c2fcb85a34fcb0e5962 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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