enh(windows) Get windows version
This commit is contained in:
parent
ad78c71af7
commit
21e74efbb5
|
@ -110,7 +110,10 @@ Try {
|
||||||
$SCCM = $null
|
$SCCM = $null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$WindowsVersion = (Get-WmiObject -class Win32_OperatingSystem).Caption;
|
||||||
|
|
||||||
$item = @{
|
$item = @{
|
||||||
|
WindowsVersion = $WindowsVersion;
|
||||||
CBServicing = $CBSRebootPend;
|
CBServicing = $CBSRebootPend;
|
||||||
WindowsUpdate = $WUAURebootReq;
|
WindowsUpdate = $WUAURebootReq;
|
||||||
CCMClientSDK = $SCCM;
|
CCMClientSDK = $SCCM;
|
||||||
|
|
Loading…
Reference in New Issue