WMI filter for NOT server core for all current Windows editions

Solution 1:

Found a hack myself. Query if explorer.exe exists instead:

Select * from CIM_DataFile where Name ='C:\\Windows\\explorer.exe'