Detect if running in a VM Tag(s): Misc Prog HowTo
Using WMIC.
@echo off wmic bios list full | find /i "vmware" set result=%ERRORLEVEL% if "%result%"=="1" echo "not running in a VM" if "%result%"=="0" echo "running in a VM"
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com