Is there a way to block Kali Linux (WSL 2) installation in a Org

debugger_mz 0 Reputation points

Suppose Windows Enterprise is used in an org, is there a way we can block the Kali Linux WSL2 (but other Linux distribution like Ubuntu is allowed) installation by any means like GPO ?


Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,556 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 43,921 Reputation points

    Hello there,

    This can be done with Powershell script.

    You can script it and add this script to the user startup process. Your script will check if WSL is activated. If so, force it back to a disabled state and force reboot.

    Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | Select-Object State

    Users shouldn't be allowed to install it without admin rights.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments