Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED Query to List Computer with Visio Click-to-Run

  • Thread starter Thread starter George3113
  • Start date Start date
  • Replies Replies 5
  • Views Views 3K
Status
Not open for further replies.

George3113

Member
Messages
10
Solutions
1
Reaction score
0
Points
1
Hello,
I am trying to create a query that will list all computers with Visio Click-to-Run installed. I have tried using product code/IdentifyingNumber from Win32_Product but Visio is not listed when I run gwmi win32_prodcut. I have also tried using the query at the bottom of the post, containing SMS_G_SYStem_softwareFile.Filename = "Visio.exe" but I get no results. Any ideas? Thanks in advance.

select SMS_R_System.Name, SMS_G_System_OPERATING_SYSTEM.BuildNumber, SMS_G_System_INSTALLED_SOFTWARE.ARPDisplayName, SMS_G_System_INSTALLED_SOFTWARE.VersionMajor from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FilePath like "C:\\Program Files\\Microsoft Office\\root\\Office16\\Visio.exe" and SMS_G_System_SoftwareFile.FileName = "Visio.exe"
 
Solution
The query below got me the information I needed. Had trouble with 'equal to'. I only got results with 'is like'. Thanks for your help.

select SMS_R_System.Name, SMS_G_System_OPERATING_SYSTEM.BuildNumber, SMS_G_System_INSTALLED_SOFTWARE.ARPDisplayName, SMS_G_System_INSTALLED_SOFTWARE.VersionMajor from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ARPDisplayName like "%Microsoft Visio - en-us%"
Sorry, I forgot to add that we don't any exes in software inventory and I can't add anything to SI. I do see Vision in resource explorer.
1674834843070.png
 
The query below got me the information I needed. Had trouble with 'equal to'. I only got results with 'is like'. Thanks for your help.

select SMS_R_System.Name, SMS_G_System_OPERATING_SYSTEM.BuildNumber, SMS_G_System_INSTALLED_SOFTWARE.ARPDisplayName, SMS_G_System_INSTALLED_SOFTWARE.VersionMajor from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ARPDisplayName like "%Microsoft Visio - en-us%"
 
Solution
Status
Not open for further replies.

Forum statistics

Threads
7,144
Messages
27,895
Members
18,190
Latest member
escdarck

Trending content

Back
Top