Advertisement
lincruste

BIOS config Lenovo with M2 support

Sep 23rd, 2021
1,793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. chcp 65001 1>nul
  3. for /f %%a in ('wmic /namespace:\\root\microsoft\windows\storage path msft_disk get bustype^|findstr [0-9]') do set "variable=%%a"& goto :termine
  4.  
  5. :termine
  6. echo Résultat de la requête : %variable%
  7. if %variable% EQU 17 (
  8.     echo Lecteur M2 détecté
  9.     rem start "c:\windows\cfgwin\cfgwin_x64.exe" /r /path:c:\windows\cfgwin\lenovo710QM2.cfg /admin:password >> c:\windows\cfgwin\cfgwin.log
  10.  ) else (
  11.     echo Lecteur non M2 détecté
  12.     rem start "c:\windows\cfgwin\cfgwin_x64.exe" /r /path:c:\windows\cfgwin\lenovo710Q.cfg /admin:password >> c:\windows\cfgwin\cfgwin.log
  13.  )
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement