#205433 - 2012-06-27 04:26 PM
Re: Can someone run this code on VMware please?
[Re: Mart]
|
BradV
Seasoned Scripter
  
Registered: 2006-08-16
Posts: 687
Loc: Maryland, USA
|
Looking closer, Win32_BaseBoard returns information on the system board. Makes sense that it might be Intel. The virtual servers are running Windows 2008 R2 (64 bit). I changed it to:
Break on
$wmiColl = GetObject("WinMgmts:root/cimv2").ExecQuery("Select * FROM Win32_ComputerSsystem")
For Each $wmiObj in $wmiColl
? $wmiObj.Model
Next
and got back VMware Virtual Platform. Is that what you were looking for?
Regards,
Brad
|
|
Top
|
|
|
|
#205436 - 2012-06-27 07:29 PM
Re: Can someone run this code on VMware please?
[Re: Lonkero]
|
BradV
Seasoned Scripter
  
Registered: 2006-08-16
Posts: 687
Loc: Maryland, USA
|
I get:
VMware, Inc. VMware Virtual Platform
(sorry, none of my systems are connected to the Internet. So, I have to re-type everything and so can often make typoss) 
Regards,
Brad
|
|
Top
|
|
|
|
#205448 - 2012-06-29 08:49 PM
Re: Can someone run this code on VMware please?
[Re: Lonkero]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
No, iSCSI off course not  But in my Inventory I always use $obj.Model from Win32_ComputerSystem. That returns "VMware Virtual Platform" on ESXi 3.5, 4.0, 4.1, 5.0 and 5.0u1 as well as on Workstation and Fusion. It is also the only thing I could find that would stil work after a P2V conversion.
But keep in mind, this of course gives a different value when using Xen, Hyper-V or RedHat's Hypervisor crap. Different Hypervisor different value.
|
|
Top
|
|
|
|
#205449 - 2012-06-29 10:02 PM
Re: Can someone run this code on VMware please?
[Re: Arend_]
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4562
Loc: USA
|
I dont know if this will help or not, but imvirt supposedly does this. http://micky.ibh.net/~liske/imvirt.html
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 793 anonymous users online.
|
|
|