Skip to content

Instantly share code, notes, and snippets.

@just1689
Created November 12, 2019 11:40
Show Gist options
  • Save just1689/edb0bfdde42349726781e407a0ff6fcc to your computer and use it in GitHub Desktop.
Save just1689/edb0bfdde42349726781e407a0ff6fcc to your computer and use it in GitHub Desktop.
Powershell to see if Ubuntu subsystem Linux is installed
$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