Joseph Daly
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?
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?
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
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
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 )
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 )
ASKER
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
Thanks
Where can I enable the WMI filtering on the GPO software install?
Thanks
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.