microsoft / microsoft/WSL

WSL in Company Environment - Block WSL2 Company-Wide

Open
#10,381 1 comment 1 reaction 1 assignee Claimed by @craigloewen-msft View on GitHub
feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Hi,

We use WSL in our company daily, but we found, that WSL2 poses a great security risk as Microsoft doesn't support the Microsoft Defender for WSL2.
Also we have a lot of tools, which aren't compatible with WSL2 and only work with WSL1.

Unfortunately we have yet to find a way to allow WSL1 in general in the Company, but block the installation/usage of WSL2 due to the security risks involved in using it.

Is there any group policy/script I could set to allow WSL1, but not WSL2? So that no one could update to WSL2?
Or is there any other way. So far I only found an option using a Powershell Script, which would completely disable WSL altogether.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.