Group Policy WMI filter for Desktops, Laptops and VMs

Group Policy WMI filter for Desktops, Laptops and VMs

 

2014-08-08 16_51_04-DesktopFilter

 


SELECT * FROM Win32_ComputerSystem WHERE PCSystemType= "1"



wmic ComputerSystem get PCSystemType



strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")

Set colItems = objWMIService.ExecQuery( _

"SELECT * FROM Win32_ComputerSystem",,48)

For Each objItem in colItems

	Echo "-----------------------------------"</li>
	Echo "Win32_ComputerSystem instance"</li>
	Echo "-----------------------------------"</li>
	Echo "PCSystemType: " & objItem.PCSystemType</li>

Next

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s