Skip to content

Instantly share code, notes, and snippets.

View fraxito's full-sized avatar
😀
.

Jorge Cisneros González fraxito

😀
.
  • Escuela Universitaria Politécnica - Universidad Francisco de Vitoria
View GitHub Profile
@fraxito
fraxito / win10dockerinstallwsl2.ps1
Created September 22, 2024 08:16 — forked from chamindac/win10dockerinstallwsl2.ps1
This script automates installation of Docker Desktop on Windows 10 and uses WSL2
set-executionpolicy -scope CurrentUser -executionPolicy Bypass -Force
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
# Relaunch as an elevated process:
Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs
exit
}
$ProgressPreference = 'SilentlyContinue'