1
0
mirror of https://github.com/massgravel/Microsoft-Activation-Scripts.git synced 2025-04-07 06:27:31 +00:00

Avoid a potential crash in wmic.exe check

This commit is contained in:
WindowsAddict
2024-08-19 06:17:15 +05:30
parent b983bd41da
commit 79bc7b0242
5 changed files with 6 additions and 6 deletions

View File

@ -1090,7 +1090,7 @@ function ReinstallLicenses() {
set _wmic=0
for %%# in (wmic.exe) do @if not "%%~$PATH:#"=="" (
wmic path Win32_ComputerSystem get CreationClassName /value %nul2% | find /i "computersystem" %nul1% && set _wmic=1
cmd /c "wmic path Win32_ComputerSystem get CreationClassName /value" %nul2% | find /i "computersystem" %nul1% && set _wmic=1
)
exit /b