web-dev-qa-db-ja.com

SCCM Microsoft Visio StandardまたはProfessionalのクエリ

ワークステーションにVisio 2010のようなOffice製品のプロフェッショナルバージョンと標準バージョンのどちらが搭載されているかを示すクエリが必要です。

私はここで見つけた次のものを持っていますが、それを示すためにそれを微調整することはできません、現在のところSCCMのクエリではあまり良くありません。

select SMS_R_System.Name, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
from SMS_R_System
inner join SMS_G_System_ADD_REMOVE_PROGRAMS on
SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId
where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%Visio Standard%"
or SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%Visio Professional%"
order by SMS_R_System.Name

クエリを更新し、今のように機能するようにしました。すべてのアクティブなコンピューターに対してこれを実行すると、ProfessionalまたはStandardのバージョンが返されます。

2
User79.Net

これは私のために働いた:

select SMS_R_System.Name, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName 
from  SMS_R_System 
inner join SMS_G_System_ADD_REMOVE_PROGRAMS 
   on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID =   SMS_R_System.ResourceId 
where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%Visio Standard%" 
   or SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%Visio Professional%" 
order by SMS_R_System.Name
1
User79.Net