WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Remove WSL from .wim image file

Open nikitin-vitalii opened this issue 7 months ago • 3 comments

How to complitely remove all WSL files from .wim image file? It is possible?

This command can only disable WSL: dism /image:Z:\Install /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux

nikitin-vitalii avatar May 21 '25 07:05 nikitin-vitalii

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

github-actions[bot] avatar May 21 '25 07:05 github-actions[bot]

/question

ghost avatar May 21 '25 07:05 ghost

Diagnostic information
Found '/question', adding tag 'question'

github-actions[bot] avatar May 21 '25 07:05 github-actions[bot]