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

debugger_mz 0 Reputation points
2023-03-15T00:07:26.92+00:00

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 ?

Thanks

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

1 answer

Sort by: Most helpful
  1. Limitless Technology 43,931 Reputation points
    2023-03-15T16:21:54.07+00:00

    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