mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 17:38:19 +02:00
Updated some scripts
This commit is contained in:
parent
c594e15920
commit
d06194ef3b
@ -5,7 +5,7 @@
|
|||||||
This PowerShell script queries the GPU status and prints it.
|
This PowerShell script queries the GPU status and prints it.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-gpu.ps1
|
PS> ./check-gpu.ps1
|
||||||
✅ NVIDIA Quadro P400 GPU (2GB RAM, 3840x2160 pixels, 32-bit, 59Hz, driver 31.0.15.1740): status OK
|
✅ NVIDIA Quadro P400 GPU (2GB RAM, 3840x2160 pixels, 32-bit, 59Hz, driver 31.0.15.1740) - status OK
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -37,7 +37,7 @@ try {
|
|||||||
$RefreshRate = $Details.CurrentRefreshRate
|
$RefreshRate = $Details.CurrentRefreshRate
|
||||||
$DriverVersion = $Details.DriverVersion
|
$DriverVersion = $Details.DriverVersion
|
||||||
$Status = $Details.Status
|
$Status = $Details.Status
|
||||||
Write-Host "✅ $Model GPU ($(Bytes2String $RAMSize) RAM, $($ResWidth)x$($ResHeight) pixels, $($BitsPerPixel)-bit, $($RefreshRate)Hz, driver $DriverVersion): status $Status"
|
Write-Host "✅ $Model GPU ($(Bytes2String $RAMSize) RAM, $($ResWidth)x$($ResHeight) pixels, $($BitsPerPixel)-bit, $($RefreshRate)Hz, driver $DriverVersion) - status $Status"
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it.
|
This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-smart-devices.ps1
|
PS> ./check-smart-devices.ps1
|
||||||
✅ 1TB Samsung SSD 970 EVO via NVMe (37°C, 2388 hours, 289x on/off, v2B2QEXE7): selftest OK
|
✅ 1TB Samsung SSD 970 EVO via NVMe (37°C, 2388 hours, 289x on/off, v2B2QEXE7) - selftest OK
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -87,7 +87,7 @@ try {
|
|||||||
$status = "⚠️"
|
$status = "⚠️"
|
||||||
}
|
}
|
||||||
$firmwareVersion = $details.firmware_version
|
$firmwareVersion = $details.firmware_version
|
||||||
Write-Host "$status $capacity$modelName via $protocol ($temp, $hours, $powerOn, v$firmwareVersion): $selftest"
|
Write-Host "$status $capacity$modelName via $protocol ($temp, $hours, $powerOn, v$firmwareVersion) - $selftest"
|
||||||
}
|
}
|
||||||
#Write-Progress -completed "Done."
|
#Write-Progress -completed "Done."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
Loading…
Reference in New Issue
Block a user