Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- SETLOCAL EnableDelayedExpansion
- for /f "tokens=*" %%G in ('bcdedit /enum {default} ^| find /I "hypervisorlaunchtype"') do set HYPERVSTATUS=%%G
- IF /I "%HYPERVSTATUS%" == "hypervisorlaunchtype auto" (
- ECHO hypervisorlaunchtype Auto
- ) ELSE IF /I "%HYPERVSTATUS%" == "hypervisorlaunchtype off" (
- ECHO hypervisorlaunchtype Off
- ) ELSE (
- ECHO Unknown Hyper-V Status
- )
- PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement