Update wmi2dokuwiki.ps1
This commit is contained in:
@@ -19,8 +19,6 @@ $serialNumber = (Get-CimInstance -ClassName Win32_BIOS).SerialNumber
|
|||||||
$bios = Get-CimInstance -ClassName Win32_BIOS
|
$bios = Get-CimInstance -ClassName Win32_BIOS
|
||||||
$biosVersion = ($bios.SMBIOSBIOSVersion)
|
$biosVersion = ($bios.SMBIOSBIOSVersion)
|
||||||
$biosDate = $bios.ReleaseDate
|
$biosDate = $bios.ReleaseDate
|
||||||
# Format BIOS datum naar YYYY-MM-DD
|
|
||||||
$biosDateFormatted = [Management.ManagementDateTimeConverter]::ToDateTime($biosDate).ToString("yyyy-MM-dd")
|
|
||||||
|
|
||||||
# ======================
|
# ======================
|
||||||
# CPU
|
# CPU
|
||||||
@@ -53,7 +51,7 @@ Write-Output "| Fabrikant | $manufacturer |"
|
|||||||
Write-Output "| Productnaam | $productName |"
|
Write-Output "| Productnaam | $productName |"
|
||||||
Write-Output "| Serienummer | $serialNumber |"
|
Write-Output "| Serienummer | $serialNumber |"
|
||||||
Write-Output "| BIOS-versie | $biosVersion |"
|
Write-Output "| BIOS-versie | $biosVersion |"
|
||||||
Write-Output "| BIOS-datum | $biosDateFormatted |"
|
Write-Output "| BIOS-datum | $biosDate |"
|
||||||
Write-Output "| CPU-model | $cpuModel |"
|
Write-Output "| CPU-model | $cpuModel |"
|
||||||
Write-Output "| CPU-sockets | $cpuSockets |"
|
Write-Output "| CPU-sockets | $cpuSockets |"
|
||||||
Write-Output "| Totaal geheugen | ${memoryTotalGB} GB |"
|
Write-Output "| Totaal geheugen | ${memoryTotalGB} GB |"
|
||||||
|
|||||||
Reference in New Issue
Block a user