From 21e74efbb54b4cdb7008957e644ff0e92cfa87b7 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/common/powershell/windows/pendingreboot.pm b/centreon/common/powershell/windows/pendingreboot.pm index 39165848f..25960fe51 100644 --- a/centreon/common/powershell/windows/pendingreboot.pm +++ b/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;