mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-25 05:26:47 +01:00
Improve list-installed-apps.ps1
This commit is contained in:
parent
9748042e05
commit
b1a8a339be
@ -2,7 +2,7 @@
|
||||
.SYNOPSIS
|
||||
list-installed-apps.ps1
|
||||
.DESCRIPTION
|
||||
Lists the installed Windows Store apps
|
||||
Lists the installed apps (from Windows Store or snaps)
|
||||
.EXAMPLE
|
||||
PS> ./list-installed-apps
|
||||
.NOTES
|
||||
@ -12,7 +12,11 @@
|
||||
#>
|
||||
|
||||
try {
|
||||
get-appxPackage | select-object Name,Version | format-table -autoSize
|
||||
if ($IsLinux) {
|
||||
& snap list
|
||||
} else {
|
||||
get-appxPackage | select-object Name,Version | format-table -autoSize
|
||||
}
|
||||
exit 0
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||
|
Loading…
Reference in New Issue
Block a user