MS Office SP3 Query

Author Message
allenr74

  • Total Posts : 131
  • Scores: -4
  • Reward points : 19410
  • Joined: 5/12/2009
  • Status: offline
MS Office SP3 Query Thursday, July 12, 2012 10:28 AM (permalink)
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?
 
#1
    skissinger

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

      • Total Posts : 464
      • Scores: 19
      • Reward points : 39920
      • Joined: 11/8/2002
      • Status: offline
      Re:MS Office SP3 Query Friday, July 13, 2012 4:34 AM (permalink)
      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
       
      #3
        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2013 ASPPlayground.NET Forum Version 3.9