Added list-installed-apps.ps1

This commit is contained in:
Markus 2021-02-22 19:51:37 +01:00
parent 30776d870b
commit 3705f9c2dd
4 changed files with 24 additions and 5 deletions

View File

@ -41,7 +41,8 @@ list-files.ps1, lists all files in the given folder and also in every subfolder
list-formatted.ps1, lists the current working directory formatted in columns
list-fritzbox-calls.ps1, lists the FRITZ!Box calls
list-fritzbox-devices.ps1, lists FRITZ!Box's known devices
list-installed-software.ps1, lists the installed software
list-installed-apps.ps1, lists the installed Windows Store apps
list-installed-software.ps1, lists the installed software (except Windows Store apps)
list-logbook.ps1, lists the content of the logbook
list-unused-files.ps1, lists unused files in a directory tree
list-cmdlets.ps1, lists the PowerShell cmdlets

1 Script Description
41 list-formatted.ps1 lists the current working directory formatted in columns
42 list-fritzbox-calls.ps1 lists the FRITZ!Box calls
43 list-fritzbox-devices.ps1 lists FRITZ!Box's known devices
44 list-installed-software.ps1 list-installed-apps.ps1 lists the installed software lists the installed Windows Store apps
45 list-installed-software.ps1 lists the installed software (except Windows Store apps)
46 list-logbook.ps1 lists the content of the logbook lists the content of the logbook
47 list-unused-files.ps1 lists unused files in a directory tree
48 list-cmdlets.ps1 lists the PowerShell cmdlets

View File

@ -96,7 +96,8 @@ Various Scripts 🛒
* [list-automatic-variables.ps1](Scripts/list-automatic-variables.ps1) - lists the automatic variables of PowerShell
* [list-current-timezone.ps1](Scripts/list-current-timezone.ps1) - lists the current time zone details
* [list-environment-variables.ps1](Scripts/list-environment-variables.ps1) - lists all environment variables
* [list-installed-software.ps1](Scripts/list-installed-software.ps1) - lists the installed software
* [list-installed-apps.ps1](Scripts/list-installed-apps.ps1) - lists the installed Windows Store apps
* [list-installed-software.ps1](Scripts/list-installed-software.ps1) - lists the installed software (except Windows Store apps)
* [list-fritzbox-calls.ps1](Scripts/list-fritzbox-calls.ps1) - lists the FRITZ!Box calls
* [list-fritzbox-devices.ps1](Scripts/list-fritzbox-devices.ps1) - lists FRITZ!Box's known devices
* [list-logbook.ps1](Scripts/list-logbook.ps1) - lists the content of the logbook

View File

@ -0,0 +1,16 @@
#!/bin/powershell
<#
.SYNTAX ./list-installed-apps.ps1
.DESCRIPTION lists the installed Windows Store apps
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
try {
get-appxPackage | select-object Name,Version | format-table -autoSize
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -1,13 +1,14 @@
#!/bin/powershell
<#
.SYNTAX ./list-installed-software.ps1
.DESCRIPTION lists the installed software
.DESCRIPTION lists the installed software (except Windows Store apps)
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
try {
get-itemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | select-object DisplayName,DisplayVersion,InstallDate | format-table -autoSize
get-itemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*, HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | select-object DisplayName,DisplayVersion,InstallDate | format-table -autoSize
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"