Renamed to check-motherboard.ps1

This commit is contained in:
Markus Fleschutz 2024-10-01 15:33:53 +02:00
parent d957e3aba2
commit fa086893aa
2 changed files with 6 additions and 1 deletions

View File

@ -19,6 +19,7 @@ Write-Host "`n H A R D W A R E" -foregroundColor green
& "$PSScriptRoot/check-cpu.ps1" & "$PSScriptRoot/check-cpu.ps1"
& "$PSScriptRoot/check-ram.ps1" & "$PSScriptRoot/check-ram.ps1"
& "$PSScriptRoot/check-gpu.ps1" & "$PSScriptRoot/check-gpu.ps1"
& "$PSScriptRoot/check-motherboard.ps1"
& "$PSScriptRoot/check-bios.ps1" & "$PSScriptRoot/check-bios.ps1"
& "$PSScriptRoot/check-smart-devices.ps1" & "$PSScriptRoot/check-smart-devices.ps1"
& "$PSScriptRoot/check-power.ps1" & "$PSScriptRoot/check-power.ps1"

View File

@ -15,7 +15,11 @@
#> #>
try { try {
Get-WmiObject -Class Win32_BaseBoard if ($IsLinux) {
} else {
$details = Get-WmiObject -Class Win32_BaseBoard
"$($details.Product) motherboard by $($details.Manufacturer)"
}
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"