79582921

Date: 2025-04-20 00:05:48
Score: 0.5
Natty:
Report link

Your query string has 2 problems: you're missing a leading single quote and a space. The query should look like this (notice the space after 'FROM'):

using (var searcher = new ManagementObjectSearcher("SELECT * FROM " + "Win32_PnpEntity WHERE Caption like '%(COM%'"))

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Michael Roy