MS Office SP3 Query

Author Message
allenr74
  • Total Posts : 131
  • Scores: -4
  • Reward points : 19410
  • Joined: 5/12/2009
MS Office SP3 Query - Thursday, July 12, 2012 10:28 AM
0
[Helpful answer received] / [List Solutions Only]
I am trying to get a query to display machines in my environment that have MS Office 2007 SP3 installed.  I know I have 28 machines with that installed.  I would like the query so I can have a dynamic collection for the remiaining machines (about 1,100).  I created a package for SP3 outside of the updates and will be using this package.
 
Here is my query:
 
select distinct SMS_G_System_SYSTEM.Name from  SMS_R_System inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceId 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 "Microsoft Office 2007 Service Pack 3(SP3)"
 
But I don't get any results.  I am thinking this might be because "Show Updates" is not checked by default in Add/Remove programs.  Would that have anything to do with it?  If so, does anyone have a way to return results based on a query?

skissinger
  • Total Posts : 4810
  • Scores: 458
  • Reward points : 106230
  • Joined: 9/13/2001
  • Location: Sherry Kissinger
Re:MS Office SP3 Query - Thursday, July 12, 2012 12:04 PM
0
Windows 7 clients?  does this help?  http://myitforum.com/cs2/...or-windows-7-2008.aspx
mofmaster@myitforum.com
My Blog
Microsoft MVP - ConfigMgr

jmcleish
  • Total Posts : 468
  • Scores: 19
  • Reward points : 40830
  • Joined: 11/8/2002
Re:MS Office SP3 Query - Friday, July 13, 2012 4:34 AM
0
[This post was marked as helpful]
Here is my query:
select distinct SMS_R_System.Name, SMS_G_System_WORKSTATION_STATUS.LastHardwareScan, SMS_R_System.LastLogonUserName, SMS_G_System_OPERATING_SYSTEM.Caption, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName, SMS_G_System_ADD_REMOVE_PROGRAMS.InstallDate 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_WORKSTATION_STATUS on SMS_G_System_WORKSTATION_STATUS.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_ADD_REMOVE_PROGRAMS.DisplayName in ("2007 Microsoft Office Suite Service Pack 3 (SP3)","Microsoft Office 2007 Service Pack 3 (SP3)") order by SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
 
I think you are missing a space bewteen the 3 and the (
 
mine shows xp and w7 
Regards
Jane