Hi,
I am currently using a WMI to query all mobile machines using this statement - select * from win32_computersystem where pcsystemtype = 2
The query works fine but is also picking up virtual machines running on laptops. I want to exclude the task form running on machines running on these virtual machines. Is there anything way of appending the original statement to exclude the virtual machines. Most virtual platforms include the word 'virtual' in the model description (VMWare Virtual Platform, Virtual Machine, virtualbox). I don't know id this would work, but would something likeselect * from win32_computersystem where pcsystemtype = 2 (and where Model does NOT include "virtual") be possible?
Thanks.
I am currently using a WMI to query all mobile machines using this statement - select * from win32_computersystem where pcsystemtype = 2
The query works fine but is also picking up virtual machines running on laptops. I want to exclude the task form running on machines running on these virtual machines. Is there anything way of appending the original statement to exclude the virtual machines. Most virtual platforms include the word 'virtual' in the model description (VMWare Virtual Platform, Virtual Machine, virtualbox). I don't know id this would work, but would something likeselect * from win32_computersystem where pcsystemtype = 2 (and where Model does NOT include "virtual") be possible?
Thanks.
JC