-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-hypervisor.bat
More file actions
74 lines (62 loc) · 1.7 KB
/
setup-hypervisor.bat
File metadata and controls
74 lines (62 loc) · 1.7 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@echo off
REM SharpVM Hypervisor Setup
REM Run as Administrator for install/uninstall operations
echo.
echo ========================================
echo SharpVM Hypervisor Setup
echo ========================================
echo.
echo Options:
echo 1. Check status
echo 2. QUICK INSTALL (build + sign + install)
echo 3. Build driver only
echo 4. Setup signing (create cert + sign)
echo 5. Install driver
echo 6. Uninstall driver
echo 7. Enable test signing (requires reboot)
echo 8. Download WDK
echo 0. Exit
echo.
set /p choice="Enter choice: "
if "%choice%"=="1" (
powershell -ExecutionPolicy Bypass -File "%~dp0scripts\install-hypervisor.ps1" -Status
pause
goto :eof
)
if "%choice%"=="2" (
powershell -ExecutionPolicy Bypass -File "%~dp0scripts\install-hypervisor.ps1" -Quick
pause
goto :eof
)
if "%choice%"=="3" (
powershell -ExecutionPolicy Bypass -File "%~dp0scripts\install-hypervisor.ps1" -Build
pause
goto :eof
)
if "%choice%"=="4" (
powershell -ExecutionPolicy Bypass -File "%~dp0scripts\install-hypervisor.ps1" -SetupSigning
pause
goto :eof
)
if "%choice%"=="5" (
powershell -ExecutionPolicy Bypass -File "%~dp0scripts\install-hypervisor.ps1" -Install
pause
goto :eof
)
if "%choice%"=="6" (
powershell -ExecutionPolicy Bypass -File "%~dp0scripts\install-hypervisor.ps1" -Uninstall
pause
goto :eof
)
if "%choice%"=="7" (
powershell -ExecutionPolicy Bypass -File "%~dp0scripts\install-hypervisor.ps1" -EnableTestSigning
pause
goto :eof
)
if "%choice%"=="8" (
start https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
goto :eof
)
if "%choice%"=="0" goto :eof
echo Invalid choice
pause