mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-05-07 09:04:45 +02:00
Added list-installed-software.ps1
This commit is contained in:
parent
8ace5fcff2
commit
d3b578d12f
@ -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
|
||||
|
|
@ -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
|
||||
|
15
Scripts/list-installed-software.ps1
Executable file
15
Scripts/list-installed-software.ps1
Executable 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user