vbscript - VB6 或 VBScript 代码来检测是否在 VMware 或虚拟机上运行?

标签 vbscript vb6 virtual-machine virtualbox virtualization

是否有 VB6 或 VBScript 代码可以检测是否在 VMware 或虚拟机上运行?

以下链接显示了其他编程语言的代码。 VB6 或 VBScript 有办法吗?

Detect virtualized OS from an application?

How to detect if my application is running in a virtual machine?

Detect if your program is running inside a Virtual Machine

最佳答案

Vmware有this article关于不同的方法:

Virtual BIOS DMI information The VMware virtual BIOS has many VMware-specific identifiers which programs can use to detect hypervisors. For the DMI string check, use the BIOS serial number and check for either string "VMware-" or "VMW" (for Mac OS X guests running on Fusion).

这是访问 BIOS 序列号的脚本:

http://www.vbforums.com/showthread.php?572678-RESOLVED-Getting-CPU-ID-and-BIOS-ID

关于vbscript - VB6 或 VBScript 代码来检测是否在 VMware 或虚拟机上运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39051575/

相关文章:

vb6 - 如何检测麦克风是否存在

vb.net - 使用ffmpeg通过编解码器压缩后从网络摄像头获取所有字节流?

c++ - 如何在正在运行的 Visual Basic 6.0 进程(例如 MSVBVM60.DLL)中运行 Visual Basic 代码?

mysql - Vagrant SSH - 设置并连接到 MySQL

sqlite - VBScript SQLite连接字符串

javascript - 这段 VB 代码是如何自动添加的?

mysql - 从 vbscript 连接到 mysql 时用户对数据库的访问被拒绝

mysql - 无法连接到远程mysql数据库服务器

bash - 如何正确使用 ansible 主机名模块?

cookies - 如何编码? response.cookie 与 asp 经典 - vbscript?