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

27
scripts/check-motherboard.ps1 Executable file
View File

@ -0,0 +1,27 @@
<#
.SYNOPSIS
Lists motherboard details
.DESCRIPTION
This PowerShell script lists the motherboard details.
.EXAMPLE
PS> ./list-motherboard.ps1
Manufacturer : Gigabyte Technology Co., Ltd.
...
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
try {
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])"
exit 1
}