mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2026-10-16 08:16:13 -08:00
Avoid a potential crash in wmic.exe check
This commit is contained in:
1 parent
b983bd41da
commit
79bc7b0242
5 files changed
+6
-6
No files matched your search
@@ -850,7 +850,7 @@ exit /b
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user