zoukankan      html  css  js  c++  java
  • 修改当前启动菜单项的HyperVisorLaunchType

    switch-hyperv.bat

     1 @echo off
     2 "%SYSTEMROOT%system32cacls.exe" "%SYSTEMROOT%system32configSYSTEM" >nul 2>nul
     3 if %errorlevel%==0 goto :start
     4 
     5 echo Please use administrator account to run.
     6 echo 请以管理员身份运行。
     7 pause
     8 goto :end
     9 
    10 :start
    11 pushd "%~dp0"
    12 :menu
    13 echo MENU
    14 echo 1. Set current boot item: hypervisorlaunchtype Auto
    15 echo 2. Set current boot item: hypervisorlaunchtype Off
    16 echo Q. Exit
    17 echo.
    18 echo Current status:
    19 bcdedit /enum {current}|findstr hypervisorlaunchtype
    20 echo.
    21 set /p input=Please input: 
    22 if "%input%"=="1" goto :auto
    23 if "%input%"=="2" goto :off
    24 if /i "%input%"=="q" goto :end
    25 echo.
    26 goto :menu
    27 :auto
    28 bcdedit /set {current} hypervisorlaunchtype auto
    29 goto :menu
    30 :off
    31 bcdedit /set {current} hypervisorlaunchtype off
    32 goto :menu
    33 :end
    34 popd
  • 相关阅读:
    BUUCTF--[GUET-CTF2019]number_game
    36D杯CTF Re WP
    BUUCTF--[GWCTF 2019]re3
    虎符网络安全赛道 Re Game
    Python ZIP压缩文件破解
    合唱队, 华为
    字符串排序, 华为
    称砝码, 华为
    迷宫问题, 华为
    Sudoku , 华为
  • 原文地址:https://www.cnblogs.com/Bob-wei/p/9077716.html
Copyright © 2011-2022 走看看