<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Virtual Machine detection from guests</title><link>http://blogs.technet.com/b/jhoward/archive/2005/07/26/407958.aspx</link><description>There are a few "known" hacks to determine if a program is running under a Virtual Machine, unfortunately none of these supported by Microsoft. 
 The most common one is the WMI query to find the motherboard manufacturer - if it is Microsoft, then, as</description><dc:language>en-GB</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Virtual Machine detection from guests</title><link>http://blogs.technet.com/b/jhoward/archive/2005/07/26/407958.aspx#3176818</link><pubDate>Tue, 06 Jan 2009 05:25:38 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3176818</guid><dc:creator>John Howard -MSFT</dc:creator><description>&lt;p&gt;Henk - generally you use the latest version of the additions regardless of whether VPC or VS. Both work on both platforms. However, it's been a while since I've been working with VPC and VS as I'm in the Hyper-V team now, so I can't be authoritative that it remains the case. I'm certainly not aware of anything which has caused that generalization to break.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3176818" width="1" height="1"&gt;</description></item><item><title>re: Virtual Machine detection from guests</title><link>http://blogs.technet.com/b/jhoward/archive/2005/07/26/407958.aspx#3176245</link><pubDate>Sun, 04 Jan 2009 19:29:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3176245</guid><dc:creator>Henk Hofs</dc:creator><description>&lt;p&gt;Hey John,&lt;/p&gt;
&lt;p&gt;I ran the command below on a hyperv guest...&lt;/p&gt;
&lt;p&gt;wmic:root\cli&amp;gt;path win32_bios get name&lt;/p&gt;
&lt;p&gt;Name&lt;/p&gt;
&lt;p&gt;BIOS Date: 05/05/08 20:35:56 &amp;nbsp;Ver: 08.00.02&lt;/p&gt;
&lt;p&gt;Virtual PC 2007 gives this though:&lt;/p&gt;
&lt;p&gt;wmic:root\cli&amp;gt;path win32_bios get name&lt;/p&gt;
&lt;p&gt;Name&lt;/p&gt;
&lt;p&gt;BIOS Date: 02/22/06 20:54:49 &amp;nbsp;Ver: 08.00.02&lt;/p&gt;
&lt;p&gt;Virtual Server 2005 R2:&lt;/p&gt;
&lt;p&gt;wmic:root\cli&amp;gt;path win32_bios get name&lt;/p&gt;
&lt;p&gt;Name&lt;/p&gt;
&lt;p&gt;BIOS Date: 02/22/06 20:54:49 &amp;nbsp;Ver: 08.00.02&lt;/p&gt;
&lt;p&gt;So this will be one way of diffentiating between hyper-v and VPC/VS. Next question though:&lt;/p&gt;
&lt;p&gt;Do VPC and VS need different Additions or can the same additions be used for both VPC and VS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3176245" width="1" height="1"&gt;</description></item><item><title>re: Virtual Machine detection from guests</title><link>http://blogs.technet.com/b/jhoward/archive/2005/07/26/407958.aspx#3150824</link><pubDate>Tue, 11 Nov 2008 05:37:46 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3150824</guid><dc:creator>John Howard -MSFT</dc:creator><description>&lt;p&gt;Henk - thanks :)&lt;/p&gt;
&lt;p&gt;I don't have a good answer unfortunately, at least not one which I've tried. Would it be possible to query the BIOS date from win32_bios as an option and do conditional stuff based on the date that's returned? I confess though, I haven't got a list of what dates are returned for each version. At least the Hyper-V date should be different to VS/VPS (I hope....) (05/05/08 20:35:58 Ver:08.00.02)&lt;/p&gt;
&lt;p&gt;Would that work?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3150824" width="1" height="1"&gt;</description></item><item><title>re: Virtual Machine detection from guests</title><link>http://blogs.technet.com/b/jhoward/archive/2005/07/26/407958.aspx#3149165</link><pubDate>Fri, 07 Nov 2008 17:31:12 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3149165</guid><dc:creator>Henk Hofs</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;first of all, great blog :)&lt;/p&gt;
&lt;p&gt;Sorry for the bump in this blogpost, but i'm having a little question :)&lt;/p&gt;
&lt;p&gt;I'm currently designing a deployment solution which is gonna install the vm additions automatically when os is deployed on VPC/VServer or Hyper-V. But here's the trick...&lt;/p&gt;
&lt;p&gt;Do you know a way how to check if a guest is running on Hyper-V, Virtual PC or Virtual Server. Because the WMI query for manufacturer and model is not working, for all three products it's Microsoft Corporation and Virtual Machine. But because the different products have different additions, I wouldn't want to install the VirtualServer additions on a guest that's running on Hyper-V :)&lt;/p&gt;
&lt;p&gt;Thanks in advance :)&lt;/p&gt;
&lt;p&gt;mail: h.hofs at loginconsultants.nl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3149165" width="1" height="1"&gt;</description></item><item><title>re: Virtual Machine detection from guests</title><link>http://blogs.technet.com/b/jhoward/archive/2005/07/26/407958.aspx#408226</link><pubDate>Tue, 26 Jul 2005 18:50:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:408226</guid><dc:creator>Fraser Dickson</dc:creator><description>Neat!&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=408226" width="1" height="1"&gt;</description></item></channel></rss>