-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanualdownload.ps1
More file actions
13 lines (8 loc) · 907 Bytes
/
Copy pathmanualdownload.ps1
File metadata and controls
13 lines (8 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
invoke-webrequest -uri "https://raw.githubusercontent.com/masterpatrickpl-coder/doominstallscripts/refs/heads/main/wslinstall.ps1" -UseBasicParsing -OutFile "$env:USERPROFILE\desktop\wslinstall.ps1"
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Invoke-WebRequest -Uri "https://github.com/PowerShell/PowerShell/releases/download/v7.6.3/PowerShell-7.6.3-win-x64.msi" -OutFile "$env:TEMP\pwsh.msi" -UseBasicParsing
Start-Process msiexec.exe -ArgumentList "/i `"$env:TEMP\pwsh.msi`" /quiet /norestart" -Wait
Invoke-WebRequest -Uri "https://github.com/microsoft/WSL/releases/download/2.7.8/wsl.2.7.8.0.x64.msi" -OutFile "$env:TEMP\wsl.msi" -UseBasicParsing
Start-Process msiexec.exe -ArgumentList "/i `"$env:TEMP\wsl.msi`" /quiet /norestart" -Wait
Restart-Computer -Force