Created
November 18, 2023 19:12
-
-
Save MartinRGB/a6ed52f40ed27f5e9272b10371c9d725 to your computer and use it in GitHub Desktop.
Revisions
-
MartinRGB created this gist
Nov 18, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ Reference: https://github.com/microsoft/WSL/issues/4084 > Check in Windows Security -> App & Browser Control -> Exploit Protection Settings: > > System Settings, Control Flow Guard (CFG): `Use default (On)` > > Program Settings, there should be entries for: > > * C:\Windows\System32\vmcompute.exe > * C:\Windows\System32\vmwp.exe > > Both should have Control Flow Guard set to: > > * Override System Settings > On > Use Strict CFG > > /* Enable Virtual Machine */ PowerShell: `dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart` > > /* Enable Windows Subsystem for Linux */ PowerShell: `dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart` > > /* Install WSL v2 */ [Download](https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package) > > /* Set Default Version */ PowerShell: `wsl --set-default-version 2` > > PowerShell: `wsl --unregister Ubuntu` PowerShell: `wsl --install -d Ubuntu` by Romuelson