我现在正在为 sccm 2012 数据库创建 SQL 查询,并希望查看所有客户端的已安装程序。
但是在请求后,所有客户端都有相同的程序。
继承人的代码:
SELECT Computer_System_DATA.Name00,
Computer_System_DATA.UserName00,
installed_software_data.productname00,
installed_software_data.publisher00
FROM Computer_System_DATA, installed_software_data
WHERE installed_software_data.publisher00 NOT LIKE N'%microsoft%' and
installed_software_data.publisher00 NOT LIKE N'%Intel%' and
installed_software_data.publisher00 NOT LIKE N'%nvidia%' and
installed_software_data.publisher00 NOT LIKE N'%vmware%'and
installed_software_data.publisher00 NOT LIKE N'%symantec%'and
installed_software_data.publisher00 NOT LIKE N'%hewlett-packard%'and
installed_software_data.publisher00 NOT LIKE N'%hp%'and
installed_software_data.productname00 NOT LIKE N'%driver%' and
installed_software_data.productname00 NOT LIKE N'%install%' and
installed_software_data.productname00 NOT LIKE N'%update%' and
installed_software_data.productname00 NOT LIKE N'%treiber%' and
installed_software_data.productname00 NOT LIKE N'%microsoft%' and
installed_software_data.productname00 NOT LIKE N'%hp%' and
installed_software_data.productname00 NOT LIKE N'%ghost%' and
installed_software_data.productname00 NOT LIKE N'%flash%'and
installed_software_data.productname00 NOT LIKE N'%hotfix%' and
installed_software_data.productname00 NOT LIKE N'%patch%' and
installed_software_data.productname00 NOT LIKE N'%device%' and
installed_software_data.productname00 NOT LIKE N'%runtime%' and
installed_software_data.productname00 NOT LIKE N'%java%' and
installed_software_data.productname00 NOT LIKE N'%player%' and
installed_software_data.productname00 NOT LIKE N'%ati%' and
installed_software_data.productname00 NOT LIKE N'%broadcom%'and
installed_software_data.productname00 NOT LIKE N'%canon%' and
installed_software_data.productname00 NOT LIKE N'%dell%' and
installed_software_data.productname00 NOT LIKE N'%divx%' and
installed_software_data.productname00 NOT LIKE N'%epson%' and
installed_software_data.productname00 NOT LIKE N'%veritas%' and
installed_software_data.productname00 NOT LIKE N'%defender%' and
installed_software_data.productname00 NOT LIKE N'%AFPL%' and
installed_software_data.productname00 NOT LIKE N'%web%' and
installed_software_data.productname00 NOT LIKE N'%xml%' and
installed_software_data.productname00 NOT LIKE N'%framework%' and
installed_software_data.productname00 NOT LIKE N'%soundmax%' and
installed_software_data.productname00 NOT LIKE N'%silverlight%' and
installed_software_data.productname00 NOT LIKE N'%buffer%' and
installed_software_data.productname00 NOT LIKE N'%Crazyflie Client%'