enh(windows) Get windows version

This commit is contained in:
UrBnW 2020-12-01 17:09:03 +01:00
parent ad78c71af7
commit 21e74efbb5
1 changed files with 3 additions and 0 deletions

View File

@ -110,7 +110,10 @@ Try {
$SCCM = $null
}
$WindowsVersion = (Get-WmiObject -class Win32_OperatingSystem).Caption;
$item = @{
WindowsVersion = $WindowsVersion;
CBServicing = $CBSRebootPend;
WindowsUpdate = $WUAURebootReq;
CCMClientSDK = $SCCM;