Share via


ISLaptop Variable

Question

Friday, May 26, 2017 4:42 PM

Hi,

In my OSD build I make use of ISLaptop and ISDesktop variables for setting the computername, adding the computer to a OU according to desktop or Laptop, applying drivers etc. 

The challenge that I have now is that a Tablet Device, HP Pro x2 612 G2, does not return any chassis value, just unknown. I have no idea how to work around this issue? I thought about a WMI query on the Laptop number, but that will not work as i use customsittings to set the hostname via ISLaptop or ISDesktop.

Any advice or suggestions would be much appreciated.

All replies (3)

Friday, May 26, 2017 5:39 PM âś…Answered

Assuming that you are using MDT, there are new values for new chassis types that MDT does not account for.

It's an easy fix: https://blogs.technet.microsoft.com/thomasahlstedt/2017/05/09/mdt-failes-to-identify-chassis-type-1eh-301fh-31/

Include 32 as well as that's one that Lenovo has begun using as well.

Jason | http://blog.configmgrftw.com | @jasonsandys


Friday, May 26, 2017 6:01 PM

Jason, I am using SCCM 2012. The problem is that the Device return a chassistype of 2, which according to the Microsoft list is "unknow"

So there is nothing I can query


Saturday, May 27, 2017 5:49 AM

you can modify your approach, either by editing ZTIgather or by using customsettings, so that "if model= HP Pro x2 612 G2 then set IsLaptop=True"

This assumes that you don't need a different treatment/outcome (eg, in our environment, we added a new item named IsTablet ;)

did you see in the comments on that blog, Mike Niehaus has added some extra thoughts?

Don [doesn't work for MSFT, and they're probably glad about that ;]