mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
16 lines
No EOL
381 B
PowerShell
16 lines
No EOL
381 B
PowerShell
param($Config = $null);
|
|
|
|
function ClassWindows
|
|
{
|
|
param($Config = $null);
|
|
$WindowsInformations = Get-CimInstance Win32_OperatingSystem;
|
|
|
|
$windows_datails = @{};
|
|
foreach($cpu_core in $WindowsInformations.CimInstanceProperties) {
|
|
$windows_datails.Add($cpu_core.Name, $cpu_core.Value);
|
|
}
|
|
|
|
return $windows_datails;
|
|
}
|
|
|
|
return ClassWindows -Config $Config; |