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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMS 2003 QUERY TO FIND IF USERS HAVE INSTALLED OFFICE XP

Status
Not open for further replies.

tilroc

Technical User
Nov 26, 2003
3
US
I am deploying Office XP to our users through SMS 2003. I want to find out who has actually installed the software thus far. Does someone have a query built which will find machines that have Office XP installed on them. I have queried against the winword.exe file with the Office XP version (on my machine) but I am getting no results (when I should, at least, get one (I know there are many more).

thanks
 
I haven't exactly exaustively tested this but seems to work

select SMS_G_System_COMPUTER_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 inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "Microsoft Office XP Standard" order by SMS_G_System_COMPUTER_SYSTEM.Name

Basically i'm looking at the Add/Remove stuff and checking if the product name appears, only works for Standard version, you'll be able to ass extra criteria if you want.

Master of Disaster.....Recovery
 
This is even better

select SMS_G_System_COMPUTER_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 inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "Microsoft Office XP%" order by SMS_G_System_COMPUTER_SYSTEM.Name

Master of Disaster.....Recovery
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top