From e3d914fa234876d9d3713f6a747eac5c488887fb Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Tue, 1 Dec 2020 17:09:03 +0100 Subject: [PATCH] enh(windows) Get windows version --- .../centreon/common/powershell/windows/pendingreboot.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/centreon-plugins/centreon/common/powershell/windows/pendingreboot.pm b/centreon-plugins/centreon/common/powershell/windows/pendingreboot.pm index 39165848f..25960fe51 100644 --- a/centreon-plugins/centreon/common/powershell/windows/pendingreboot.pm +++ b/centreon-plugins/centreon/common/powershell/windows/pendingreboot.pm @@ -110,7 +110,10 @@ Try { $SCCM = $null } + $WindowsVersion = (Get-WmiObject -class Win32_OperatingSystem).Caption; + $item = @{ + WindowsVersion = $WindowsVersion; CBServicing = $CBSRebootPend; WindowsUpdate = $WUAURebootReq; CCMClientSDK = $SCCM;