Update some check-*.ps1 scripts

This commit is contained in:
Markus Fleschutz 2023-04-11 10:48:59 +02:00
parent 094fca2665
commit 440f882eaf
11 changed files with 27 additions and 24 deletions

View File

@ -1,10 +1,11 @@
<#
.SYNOPSIS
Query app details
Query the app status
.DESCRIPTION
This PowerShell script queries application details and lists it.
This PowerShell script queries the application status and prints it.
.EXAMPLE
PS> ./check-apps
119 apps installed, 11 upgrades available
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -15,7 +16,7 @@ try {
if ($IsLinux) {
# TODO
} else {
Write-Progress "⏳ Querying installed apps & updates..."
Write-Progress "⏳ Querying installed apps and updates..."
$Apps = Get-AppxPackage
$Status = "$($Apps.Count) apps installed"

View File

@ -1,11 +1,11 @@
<#
.SYNOPSIS
Checks the BIOS
Checks the BIOS status
.DESCRIPTION
This PowerShell script queries the BIOS status and prints it.
.EXAMPLE
PS> ./check-bios
BIOS F6 by American Megatrends Inc. (S/N NXA82EV0EBB0760, version ALASKA - 1072009)
BIOS F6 by American Megatrends Inc. (version ALASKA - 1072009, S/N NXA82EV0EBB0760)
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -31,7 +31,7 @@ try {
$Serial = $BIOS.SerialNumber.Trim()
$Version = $BIOS.Version.Trim()
Write-Progress -completed "."
Write-Host "✅ BIOS $Model by $Manufacturer (S/N $Serial, version $Version)"
Write-Host "✅ BIOS $Model by $Manufacturer (version $Version, S/N $Serial)"
}
exit 0 # success
} catch {

View File

@ -1,8 +1,8 @@
<#
.SYNOPSIS
Queries and prints CPU details
Checks the CPU status
.DESCRIPTION
This PowerShell script queries CPU details (name, type, speed, temperature, etc.) and prints it.
This PowerShell script queries the CPU status and prints it (name, type, speed, temperature, etc).
.EXAMPLE
PS> ./check-cpu
AMD Ryzen 5 5500U with Radeon Graphics (CPU0, 2100MHz, 31.3°C)

View File

@ -1,6 +1,6 @@
<#
.SYNOPSIS
Checks the firewall
Checks the firewall status
.DESCRIPTION
This PowerShell script queries the status of the firewall and prints it.
.EXAMPLE

View File

@ -1,10 +1,11 @@
<#
.SYNOPSIS
Checks the GPU
Checks the GPU status
.DESCRIPTION
This PowerShell script queries GPU details and prints it.
This PowerShell script queries the GPU status and prints it.
.EXAMPLE
PS> ./check-gpu
NVIDIA Quadro P400 GPU (2GB RAM, 3840x2160 pixels, 32 bit, 59 Hz, driver 31.0.15.1740, status OK)
.LINK
https://github.com/fleschutz/PowerShell
.NOTES

View File

@ -1,8 +1,8 @@
<#
.SYNOPSIS
Query OS details
Checks the OS status
.DESCRIPTION
This PowerShell script queries and lists operating system details.
This PowerShell script queries the operating system status and prints it.
.EXAMPLE
PS> ./check-os
Windows 10 Pro 64-bit (v10.0.19045, since 6/22/2021, S/N 00123-45678-15135-AAOEM, P/K AB123-CD456-EF789-GH000-WFR6P)

View File

@ -1,8 +1,8 @@
<#
.SYNOPSIS
Check PowerShell details
Check the PowerShell status
.DESCRIPTION
This PowerShell script queries PowerShell details and lists it.
This PowerShell script queries the PowerShell status and prints it.
.EXAMPLE
PS> ./check-powershell
PowerShell 5.1.19041.2673 Desktop edition (10 modules, 1458 cmdlets, 172 aliases)

View File

@ -1,11 +1,11 @@
<#
.SYNOPSIS
Checks the RAM
Check the RAM status
.DESCRIPTION
This PowerShell script queries and prints details of the installed RAM.
This PowerShell script queries the status of the installed RAM and prints it.
.EXAMPLE
PS> ./check-ram
8GB DDR4 RAM @ 3200MHz (1.2V) in P0 CHANNEL A/DIMM 0 by Samsung
16GB DDR4 RAM @ 3200MHz (1.2V) in P0 CHANNEL A/DIMM 0 by Samsung
.LINK
https://github.com/fleschutz/PowerShell
.NOTES

View File

@ -1,8 +1,8 @@
<#
.SYNOPSIS
Checks SMART devices
Checks the SMART device status
.DESCRIPTION
This PowerShell script queries S.M.A.R.T. HDD/SSD device details and prints it.
This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it.
.EXAMPLE
PS> ./check-smart-devices
1TB Samsung SSD 970 EVO via NVMe (2388 hours, 289x on, v2B2QEXE7, 37°C, selftest passed)
@ -40,8 +40,8 @@ try {
$Devices = $(smartctl --scan-open)
}
Write-Progress "⏳ (3/3) Querying S.M.A.R.T devices..."
foreach($Device in $Devices) {
Write-Progress "⏳ (3/3) Querying S.M.A.R.T devices..."
$Array = $Device.split(" ")
$Device = $Array[0]
if ("$Device" -eq "#") {

View File

@ -1,6 +1,6 @@
<#
.SYNOPSIS
Checks the swap space
Checks the swap space status
.DESCRIPTION
This PowerShell script queries the status of the swap space and prints it.
.PARAMETER MinLevel

View File

@ -1,10 +1,11 @@
<#
.SYNOPSIS
Checks the VPN connection
Checks the VPN status
.DESCRIPTION
This PowerShell script queries status of the VPN connections and prints it.
This PowerShell script queries the status of the VPN connections and prints it.
.EXAMPLE
PS> ./check-vpn
VPN 'NASA L2TP' is Disconnected
.LINK
https://github.com/fleschutz/PowerShell
.NOTES