Avatar of Joseph Daly
Joseph Daly
Flag for United States of America asked on

Is there any way to determine wether a computer is a laptop or desktop in AD (500pts)

Is there any way in AD to determine wether a certain computer is a laptop or desktop?

We have a software update that needs to be pushed out to all the laptops but not the desktops. We do not have a listing of each machine that needs the software installed.

In my previous job we had SMS where you could have created a query to find the machines that fit this type. At this new job I do no have SMS to create this query is there any way this is possible in AD?
Windows Server 2003Active Directory

Avatar of undefined
Last Comment
Joseph Daly

8/22/2022 - Mon

What do you use to push out updates now? WSUS?

If so, WSUS 3.0 has a console that allows you to see whether a machine is a Laptop or Desktop. AD doesn't have a setting in the properties that explains the machines model number or product number.

I recommend gathering NETBIOS names and putting all laptops into one OU and desktops into another. This way you can seperate group policy objects for specific container of computers, or in this case push out an update to all your laptops.
Brian Pierce

You can use a WMI script - see http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0921.mspx

You can also create a group policy to deploy software http://www.windowsdevcenter.com/pub/a/windows/2006/11/14/how-to-deploy-software-using-group-policy.html and use a WMI to filter the policy for computer type

I thing the WMI object is

Root\CimV2; Select * from Win32_ComputerSystem

see http://msdn2.microsoft.com/en-us/library/aa394474.aspx
Brian Pierce

I was almost correct the WMI filter should read

select * from Win32_SystemEnclosure where ChassisTypes = 9

9 = laptop

you might want to change it to

select * from Win32_SystemEnclosure where (ChassisTypes = 8 OR ChassisTypes = 9 OR ChassisTypes = 10)

8 = portable    }
9=laptop          )  as I'm not sure when a portable becomes a laptop or notebook
10 = notebook )
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
Joseph Daly

Interesting I will have to take a look at this and see wat I can come up with i havent played with WMI yet so not sure if I have the skills to do it.
Brian Pierce

View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Joseph Daly

I already awarded you the points, I understand the WMI filter and I know how to do the GPO software push but how do I put both of them together?

Where can I enable the WMI filtering on the GPO software install?