简体   繁体   English

检测Windows是否正在Parallels中运行?

[英]Detect if Windows is running from within Parallels?

I'm trying to figure out a way to programatically determine if a copy of windows is running inside a copy of Parallels. 我试图找出一种以编程方式确定Windows副本是否在Parallels副本中运行的方法。 I have found this post with very good instructions for determining if Windows is running within VMWare, VirtualPC, or WINE, but I haven't been able to find anything similar for Parallels. 我发现这篇文章提供了很好的说明,用于确定Windows是否在VMWare,VirtualPC或WINE中运行,但是我无法为Parallels找到类似的东西。 How does one go about detecting Parallels? 如何检测Parallels?

You can detect if you are running inside Parallels if you interrogate the hardware manufacturer and model information in the .net System.Management class. 如果您查询.net System.Management类中的硬件制造商和型号信息,则可以检测是否在Parallels中运行。 This Article describes in detail how to get hardware information. 文章详细介绍了如何获得硬件信息。 If you are running in Parallels, the hardware manufacturer will return "Parallels Software International Inc." 如果您在Parallels中运行,则硬件制造商将返回“ Parallels Software International Inc.”。 and the model will return "Parallels Virtual Platform" 并且模型将返回“ Parallels Virtual Platform”

Turns out that the redpill method works fine for detecting Parallels 事实证明redpill方法可以很好地检测Parallels


Edit: 编辑:

As Paul Alexander noted in his comment, Red Pill no longer works on Parallels. 正如Paul Alexander在评论中指出的那样,Red Pill不再适用于Parallels。 I did find another method, however. 我确实找到了另一种方法。 If you look up the BIOS serial number, 'Parallels' is part of the serial number string. 如果您查找BIOS序列号,则“ Parallels”是序列号字符串的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在运行Parallels的Windows 8的Mac上设置Git - How to setup Git on a Mac with Windows 8 running in Parallels 如何在C#中知道程序在运行XP SP2的Mac上的Parallels上运行,还是在运行Windows 7的Mac上的VmWare上运行 - How to know in C# that program is running on Parallels on a Mac running XP SP2 or VmWare on a Mac running Windows 7 跳转到vim中的标签(Windows,Parallels) - Jump to tag in vim (Windows, Parallels) 检测Windows是否“完全运行” - Detect that Windows is “fully-running” 从.NET Windows应用程序中运行powershell脚本 - Running powershell scripts from within a .NET windows app 如何从在 Windows 上运行的 Docker 容器中 arping LAN 端点? - How to arping a LAN endpoint from within a Docker container running on Windows? 如何检测我的程序是否在Windows中运行? - How to detect if my program is running in Windows? 如何检测是否在新的 Windows 终端中运行? - How to detect if running in the new Windows Terminal? Windows IoT应用程序可检测正在运行的其他应用程序 - Windows IoT Application to detect other applications running 检测是否在Windows XP下以管理员权限运行 - Detect if running with administrator privileges under Windows XP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM