简体   繁体   中英

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. 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. How does one go about detecting 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. 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." and the model will return "Parallels Virtual Platform"

Turns out that the redpill method works fine for detecting Parallels


Edit:

As Paul Alexander noted in his comment, Red Pill no longer works on Parallels. I did find another method, however. If you look up the BIOS serial number, 'Parallels' is part of the serial number string.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM