That's a good idea...I was leaning towards the same sort of thing by checking for the VMWare Tools service, but I wasn't sure that it would be started when the startup script executed
2009/8/24 Kim Longenbaugh <[email protected]> > If you use WMI in your script to show the nic type, you could sort for > the nic types that show up for virtual machines. The names will reference > VMWare in some fashion, as in “VMware Accelerated AMD PCNet Adapter” > > > > > ------------------------------ > > *From:* James Rankin [mailto:[email protected]] > *Sent:* Monday, August 24, 2009 10:37 AM > *To:* NT System Admin Issues > *Subject:* Detecting virtual machines > > > > Does anyone know of a good way to detect whether a server is virtual or > physical through a script of some kind? I am currently filtering some of my > GPOs via security group membership and I have one group for physical > servers, another for virtual. I am wondering if there is some way I can run > a startup script that will, when a machine is first joined to the domain, > identify whether it is a virtual machine or not, and add it to the correct > security group accordingly. This would save me the headache of trawling > through new-build machines and adding them to the right groups. I am using > VMWare ESX 3.5 for my virtual machines. All suggestions gratefully > received... > > > TIA, > > > > JRR > > -- > "On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into > the machine wrong figures, will the right answers come out?' I am not able > rightly to apprehend the kind of confusion of ideas that could provoke such > a question." > > http://raythestray.blogspot.com > > > > > > > > > > -- "On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question." http://raythestray.blogspot.com ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
