Add Windows Powershell bootstrap
This commit is contained in:
parent
9c3a2d89b8
commit
d6cd4d3bd3
15
bootstrap-Windows.ps1
Normal file
15
bootstrap-Windows.ps1
Normal file
@ -0,0 +1,15 @@
|
||||
# Install Chocolatey
|
||||
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||
|
||||
# Enable Hyper-V and containters
|
||||
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
|
||||
Enable-WindowsOptionalFeature -Online -FeatureName containers –All
|
||||
|
||||
# Install OpenSSH, generate keys and authorize them
|
||||
choco install "--package-parameters=/SSHServerFeature" openssh
|
||||
# TODO: Ask for email address to use
|
||||
ssh-keygen.exe -t ed25519 -C benie@infektor.net
|
||||
|
||||
# Install Windows-Terminal and Debian
|
||||
choco install microsoft-windows-terminal
|
||||
wsl --install --distribution Debian
|
Loading…
x
Reference in New Issue
Block a user