mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
21 lines
527 B
PowerShell
21 lines
527 B
PowerShell
|
|
|
||
|
|
|
||
|
|
function ClassBIOS
|
||
|
|
{
|
||
|
|
# Lets load some bios informations
|
||
|
|
$BIOSInformation = Get-CimInstance Win32_BIOS;
|
||
|
|
[hashtable]$BIOSData = @{};
|
||
|
|
|
||
|
|
foreach ($bios_properties in $BIOSInformation) {
|
||
|
|
#$bios_datails = @{};
|
||
|
|
foreach($bios in $bios_properties.CimInstanceProperties) {
|
||
|
|
#$bios_datails.Add($bios.Name, $bios.Value);
|
||
|
|
$BIOSData.Add($bios.Name, $bios.Value);
|
||
|
|
}
|
||
|
|
#$BIOSData.Add($bios_datails.DeviceID, $bios_datails);
|
||
|
|
}
|
||
|
|
|
||
|
|
return $BIOSData;
|
||
|
|
}
|
||
|
|
|
||
|
|
return ClassBIOS;
|