mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-24 08:53:59 +01:00
Renamed to check-motherboard.ps1
This commit is contained in:
parent
d957e3aba2
commit
fa086893aa
@ -19,6 +19,7 @@ Write-Host "`n H A R D W A R E" -foregroundColor green
|
||||
& "$PSScriptRoot/check-cpu.ps1"
|
||||
& "$PSScriptRoot/check-ram.ps1"
|
||||
& "$PSScriptRoot/check-gpu.ps1"
|
||||
& "$PSScriptRoot/check-motherboard.ps1"
|
||||
& "$PSScriptRoot/check-bios.ps1"
|
||||
& "$PSScriptRoot/check-smart-devices.ps1"
|
||||
& "$PSScriptRoot/check-power.ps1"
|
||||
|
@ -15,7 +15,11 @@
|
||||
#>
|
||||
|
||||
try {
|
||||
Get-WmiObject -Class Win32_BaseBoard
|
||||
if ($IsLinux) {
|
||||
} else {
|
||||
$details = Get-WmiObject -Class Win32_BaseBoard
|
||||
"✅ $($details.Product) motherboard by $($details.Manufacturer)"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
Loading…
Reference in New Issue
Block a user