lollms-webui/scripts/wsl/wsl_installer.bat

10 lines
346 B
Batchfile
Raw Normal View History

2023-09-22 23:16:22 +02:00
@echo off
echo Checking if wsl is installed...
wsl --list >nul 2>&1
if %errorlevel% neq 0 (
echo WSL is not enabled or installed. Enabling and installing...
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
echo WSL installation complete.
) else (
echo WSL is enabled and installed.
)