Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
abbodi1406 | 36ebf00f7c | |
abbodi1406 | 116b51ce5d |
|
@ -223,6 +223,8 @@ if exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-Server*Edition~*.mum
|
|||
set "ESUEditions=ServerDatacenter,ServerDatacenterCore,ServerDatacenterV,ServerDatacenterVCore,ServerStandard,ServerStandardCore,ServerStandardV,ServerStandardVCore,ServerEnterprise,ServerEnterpriseCore,ServerEnterpriseV,ServerEnterpriseVCore"
|
||||
)
|
||||
for /f "tokens=6 delims=[]. " %%G in ('ver') do set winbuild=%%G
|
||||
set UBR=0
|
||||
if %winbuild% GEQ 7601 for /f "skip=2 tokens=2*" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v UBR 2^>nul') do if not errorlevel 1 set /a UBR=%%b
|
||||
set "_csg=cscript.exe //NoLogo //Job:WmiMulti "%~nx0?.wsf""
|
||||
set "_csq=cscript.exe //NoLogo //Job:WmiQuery "%~nx0?.wsf""
|
||||
set "_csm=cscript.exe //NoLogo //Job:WmiMethod "%~nx0?.wsf""
|
||||
|
@ -675,7 +677,10 @@ IF %winbuild% LSS 14393 (
|
|||
)
|
||||
IF NOT "%EditionWMI%"=="" SET "EditionID=%EditionWMI%"
|
||||
IF /I "%EditionID%"=="IoTEnterprise" SET "EditionID=Enterprise"
|
||||
IF /I "%EditionID%"=="IoTEnterpriseS" IF %winbuild% LSS 22610 SET "EditionID=EnterpriseS"
|
||||
IF /I "%EditionID%"=="IoTEnterpriseS" IF %winbuild% LSS 22610 (
|
||||
SET "EditionID=EnterpriseS"
|
||||
IF %winbuild% GEQ 19041 IF %UBR% GEQ 2788 SET "EditionID=IoTEnterpriseS"
|
||||
)
|
||||
IF /I "%EditionID%"=="ProfessionalSingleLanguage" SET "EditionID=Professional"
|
||||
IF /I "%EditionID%"=="ProfessionalCountrySpecific" SET "EditionID=Professional"
|
||||
IF /I "%EditionID%"=="EnterpriseG" SET Win10Gov=1
|
||||
|
@ -2921,6 +2926,7 @@ set "spp_get=Description, DiscoveredKeyManagementServiceMachineName, DiscoveredK
|
|||
set "ospp_get=%spp_get%"
|
||||
if %winbuild% GEQ 9200 set "spp_get=%spp_get%, KeyManagementServiceLookupDomain, VLActivationTypeEnabled"
|
||||
if %winbuild% GEQ 9600 set "spp_get=%spp_get%, DiscoveredKeyManagementServiceMachineIpAddress, ProductKeyChannel"
|
||||
set _Identity=0
|
||||
dir /b /s /a:-d "!_Local!\Microsoft\Office\Licenses\*1*" 1>nul 2>nul && set _Identity=1
|
||||
dir /b /s /a:-d "!ProgramData!\Microsoft\Office\Licenses\*1*" 1>nul 2>nul && set _Identity=1
|
||||
set _prsh=1
|
||||
|
|
Loading…
Reference in New Issue