Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMS query for visio

Status
Not open for further replies.

ragnar71

Technical User
Sep 29, 2003
9
0
0
US
I'm trying to create a query to disply all computers with visio installed. I want the query to show the machine name, the file name (visio.exe), version, the last logged on user, and the product name. Everything seems okay until I try to show the product name. When I do this it pulls all the product names on each machine and not just the visio product name. Any help would be appreciated.

Thanks
 
Have you got the web repoting tool enabled? Its a breeze with that. Go into search for file, and then put the file name in(VISIO32.exe). Assuming you have your sinv set up to record exe files it should list them there by machine name and user name.
If not, create a new query with the following SQL statement

select SMS_G_System_COMPUTER_SYSTEM.Name, SMS_R_System.LastLogonUserName from SMS_R_System inner join SMS_G_System_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName = "visio32.exe" order by SMS_G_System_COMPUTER_SYSTEM.Name


hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top