-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhypervisorlaunchtype.bat
37 lines (29 loc) · 1000 Bytes
/
hypervisorlaunchtype.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
::Coded By Davoleo
::Davoleo - (c) - 2019
@ECHO OFF
echo Requesting Admin Privileges...
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
cls
echo WELCOME TO DAVOLEO'S HYPERVISORLAUNCHTYPE SCRIPT
:CHOICE
echo.
echo *******************************************************************
echo Enter 'off' to disable automatic hypervisor launch
echo Enter 'auto' to enable automatic hypervisor launch
echo Enter 'current' to check out the current settings
echo Quit the Terminal to Cancel this operation
echo *******************************************************************
echo.
SET /p MODE="Enter your choice: "
IF /I "%MODE%"=="current" (
bcdedit
echo.
echo.
GOTO CHOICE
)
bcdedit /set hypervisorlaunchtype %MODE%
color 0a
echo press enter to restart your computer automatically
echo if you want to restart manually later quit the terminal
PAUSE
shutdown /r /c "Your computer is going to be restarted for hypervisor launch settings to take effect"