mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-24 19:08:27 +02:00
Add WinSAT
This commit is contained in:
parent
8f1393ae3b
commit
60024da825
@ -1,6 +1,6 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Lists available command-line interface (CLI) tools
|
Lists available CLI tools
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script lists available command-line interface (CLI) tools.
|
This PowerShell script lists available command-line interface (CLI) tools.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
@ -14,7 +14,7 @@
|
|||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz / License: CC0
|
Author: Markus Fleschutz | License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
function CheckFor { param([string]$Cmd, [string]$VersionArg)
|
function CheckFor { param([string]$Cmd, [string]$VersionArg)
|
||||||
@ -157,6 +157,7 @@ function ListTools {
|
|||||||
CheckFor whatis "--version"
|
CheckFor whatis "--version"
|
||||||
CheckFor which ""
|
CheckFor which ""
|
||||||
CheckFor winget "--version"
|
CheckFor winget "--version"
|
||||||
|
CheckFor winsat ""
|
||||||
CheckFor whoami "--version"
|
CheckFor whoami "--version"
|
||||||
CheckFor wput "--version"
|
CheckFor wput "--version"
|
||||||
CheckFor write ""
|
CheckFor write ""
|
||||||
@ -174,7 +175,7 @@ function ListTools {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ListTools | format-table -property @{e='Name';width=12},@{e='Version';width=15},@{e='Location';width=55},@{e='FileSize';width=10}
|
ListTools | Format-Table -property @{e='Name';width=12},@{e='Version';width=15},@{e='Location';width=55},@{e='FileSize';width=10}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
Loading…
Reference in New Issue
Block a user