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)
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
:
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)
|
|
|
|
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)
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
|
|
|
|