diff --git a/Data/scripts.csv b/Data/scripts.csv index e62ed8d2..b4e526f6 100644 --- a/Data/scripts.csv +++ b/Data/scripts.csv @@ -41,8 +41,9 @@ 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-logbook.ps1, lists the content of the logbook +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 list-earthquakes.ps1, lists earthquakes with magnitude >= 6.0 for the last 30 days diff --git a/README.md b/README.md index cac905a0..17929fc5 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Scripts/list-installed-apps.ps1 b/Scripts/list-installed-apps.ps1 new file mode 100644 index 00000000..1f983e35 --- /dev/null +++ b/Scripts/list-installed-apps.ps1 @@ -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 +} diff --git a/Scripts/list-installed-software.ps1 b/Scripts/list-installed-software.ps1 index 238da7fd..a9108826 100755 --- a/Scripts/list-installed-software.ps1 +++ b/Scripts/list-installed-software.ps1 @@ -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])"