Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Create SCCM 2007 Query for MS office 2007

Posted on 2014-01-27
1
Medium Priority
?
966 Views
Last Modified: 2014-02-13
I need to create a Query to find all Office 2007 machines inside of my environment.  

This query needs to have

Last logon on time
Last person Log on
0
Comment
Question by:JCJohnson76
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 31

Accepted Solution

by:
merowinger earned 1500 total points
ID: 39850486
This query will deliver mulitple Office 2007 products like Visio, Project, etc. so you just have to exclude them like "Proof" or "Service Pack" if you don't need them in the list
SELECT SYS.Name0, APP.DisplayName0 , SYS.Last_Logon_Timestamp0, Sys.User_Name0 
FROM v_Add_Remove_Programs APP
INNER JOIN v_R_System SYS ON SYS.ResourceID = APP.ResourceID 
WHERE 
APP.DisplayName0 LIKE '%Microsoft Office % 2007%'
and
(APP.DisplayName0 NOT LIKE '%Update%'
and APP.DisplayName0 NOT LIKE '%Service Pack%'
and APP.DisplayName0 NOT LIKE '%Proof%'
and APP.DisplayName0 NOT LIKE '%MUI%'
and APP.DisplayName0 NOT LIKE '%Language%'
and APP.DisplayName0 NOT LIKE '%Help%'
)
Order By APP.DisplayName0 ,SYS.Name0

Open in new window

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

648 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question