i'm trying to create a WMI query to check if the 6th character of the device name contains the letter T
To explain... I need this query to apply a GPO to tablet devices. In our device naming convention we specify what type of device it is on the 6th character (T for tablets, N for notebooks, etc)
Using the chassis type value (showed below) from WMI does not work for me as some of our tables are showing as laptops in WMI
SELECT * FROM Win32_SystemEnclosure
Of course i'm able to query the full computer name with below query
SELECT * FROM Win32_Computersystem
But how to check now if the 6th character is a T or not?