Created
November 12, 2019 11:40
-
-
Save just1689/edb0bfdde42349726781e407a0ff6fcc to your computer and use it in GitHub Desktop.
Powershell to see if Ubuntu subsystem Linux is installed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$p = Get-AppxPackage -N "CanonicalGroupLimited.Ubuntu18.04onWindows" | |
$ok = $p."Status" -eq "ok" | |
if ($ok) { | |
Write-host "Installed" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment