mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-24 23:59:17 +01:00
Added list-installed-apps.ps1
This commit is contained in:
parent
30776d870b
commit
3705f9c2dd
@ -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-formatted.ps1, lists the current working directory formatted in columns
|
||||||
list-fritzbox-calls.ps1, lists the FRITZ!Box calls
|
list-fritzbox-calls.ps1, lists the FRITZ!Box calls
|
||||||
list-fritzbox-devices.ps1, lists FRITZ!Box's known devices
|
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-logbook.ps1, lists the content of the logbook
|
||||||
list-unused-files.ps1, lists unused files in a directory tree
|
list-unused-files.ps1, lists unused files in a directory tree
|
||||||
list-cmdlets.ps1, lists the PowerShell cmdlets
|
list-cmdlets.ps1, lists the PowerShell cmdlets
|
||||||
|
|
@ -96,7 +96,8 @@ Various Scripts 🛒
|
|||||||
* [list-automatic-variables.ps1](Scripts/list-automatic-variables.ps1) - lists the automatic variables of PowerShell
|
* [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-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-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-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-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
|
* [list-logbook.ps1](Scripts/list-logbook.ps1) - lists the content of the logbook
|
||||||
|
16
Scripts/list-installed-apps.ps1
Normal file
16
Scripts/list-installed-apps.ps1
Normal 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
|
||||||
|
}
|
@ -1,13 +1,14 @@
|
|||||||
#!/bin/powershell
|
#!/bin/powershell
|
||||||
<#
|
<#
|
||||||
.SYNTAX ./list-installed-software.ps1
|
.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
|
.LINK https://github.com/fleschutz/PowerShell
|
||||||
.NOTES Author: Markus Fleschutz / License: CC0
|
.NOTES Author: Markus Fleschutz / License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
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
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user