mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-21 23:43:25 +01:00
Updated check-bios.ps1
This commit is contained in:
parent
dd7054cf48
commit
2666f952af
@ -14,13 +14,12 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
Write-Progress "Querying BIOS details..."
|
|
||||||
$model = (sudo dmidecode -s system-product-name)
|
$model = (sudo dmidecode -s system-product-name)
|
||||||
if ("$model" -ne "") {
|
if ("$model" -eq "") { exit 0 } # no information
|
||||||
|
Write-Progress "Querying BIOS details..."
|
||||||
$version = (sudo dmidecode -s bios-version)
|
$version = (sudo dmidecode -s bios-version)
|
||||||
$releaseDate = (sudo dmidecode -s bios-release-date)
|
$releaseDate = (sudo dmidecode -s bios-release-date)
|
||||||
$manufacturer = (sudo dmidecode -s system-manufacturer)
|
$manufacturer = (sudo dmidecode -s system-manufacturer)
|
||||||
}
|
|
||||||
Write-Progress -completed "Done."
|
Write-Progress -completed "Done."
|
||||||
} else {
|
} else {
|
||||||
$details = Get-CimInstance -ClassName Win32_BIOS
|
$details = Get-CimInstance -ClassName Win32_BIOS
|
||||||
|
Loading…
Reference in New Issue
Block a user