Added list-installed-software.ps1

This commit is contained in:
Markus Fleschutz 2020-12-30 10:55:01 +00:00
parent 8ace5fcff2
commit d3b578d12f
3 changed files with 17 additions and 0 deletions

View File

@ -19,6 +19,7 @@ inspect-exe.ps1, prints basic information of the given executable file
list-anagrams.ps1, lists all anagrams of the given word
list-empty-dirs.ps1, lists empty subfolders in a directory tree
list-files.ps1, lists all files in the given folder and also in every subfolder
list-installed-software.ps1, lists the installed software
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 Filename Description
19 list-anagrams.ps1 lists all anagrams of the given word
20 list-empty-dirs.ps1 lists empty subfolders in a directory tree
21 list-files.ps1 lists all files in the given folder and also in every subfolder
22 list-installed-software.ps1 lists the installed software
23 list-logbook.ps1 lists the content of the logbook
24 list-unused-files.ps1 lists unused files in a directory tree
25 list-cmdlets.ps1 lists the PowerShell cmdlets

View File

@ -26,6 +26,7 @@ The following PowerShell scripts can be found in the [Scripts/](Scripts/) subfol
* [inspect-exe.ps1](Scripts/inspect-exe.ps1) - prints basic information of the given executable file
* [list-anagrams.ps1](Scripts/list-anagrams.ps1) - lists all anagrams of the given word
* [list-empty-dirs.ps1](Scripts/list-empty-dirs.ps1) - lists empty subfolders in a directory tree
* [list-installed-software.ps1](Scripts/list-installed-software.ps1) - lists the installed software
* [list-files.ps1](Scripts/list-files.ps1) - lists all files in the given folder and also in every subfolder
* [list-logbook.ps1](Scripts/list-logbook.ps1) - lists the content of the logbook
* [list-unused-files.ps1](Scripts/list-unused-files.ps1) - lists unused files in a directory tree

View File

@ -0,0 +1,15 @@
#!/snap/bin/powershell
<#
.SYNTAX ./list-installed-software.ps1
.DESCRIPTION lists the installed software
.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, Publisher, InstallDate | Format-Table AutoSize
exit 0
} catch {
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}