mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts
synced 2025-05-16 12:00:06 -04:00
Use wmic.exe on builds below 9200
This commit is contained in:
parent
af18bd773c
commit
5090cde0a0
8 changed files with 23 additions and 20 deletions
|
@ -910,6 +910,7 @@ exit /b
|
|||
|
||||
:dk_ckeckwmic
|
||||
|
||||
if %winbuild% LSS 9200 (set _wmic=1&exit /b)
|
||||
set _wmic=0
|
||||
for %%# in (wmic.exe) do @if not "%%~$PATH:#"=="" (
|
||||
cmd /c "wmic path Win32_ComputerSystem get CreationClassName /value" %nul2% | find /i "computersystem" %nul1% && set _wmic=1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue