mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-31 11:16:12 +02:00
Add list-bios.ps1
This commit is contained in:
parent
5ce4f60d45
commit
da9c58db56
20
Scripts/list-bios.ps1
Normal file
20
Scripts/list-bios.ps1
Normal file
@ -0,0 +1,20 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists BIOS details
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists the BIOS details.
|
||||
.EXAMPLE
|
||||
PS> ./list-bios
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
Get-CimInstance -ClassName Win32_BIOS
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user