We have a script that determines hardware ID to pull an add on image down with the correct hardware drivers.

After loading initrd at the workstation imaging prompt running dmidecode -s baseboard-product-name usually gives just the hardware id.

However with newer hardware models this command gives the following making it hard to get the hwid correctly as there is a long string before the id.
Can someone try this on ZENworks 2017 and let me know if this gives the same error. I am not convinced if upgrading from ZCM 11.4.3 to ZCM 2017 is going to solve this.

dmidecode -s baseboard-product-name usually returns 0MGK50 for example.

Now with this new Dell model the following is returned.
SMBIOS implementations newer than version 2.8 are not fully supported by this version of dmidecode. OMGK50

Is there another way to get the hardware ID via a command on the machine.

Is a upgrade going to fix this ?