Registered member login:
Register Now
Altirigos » Altiris Administrators » Reports » Outlook Run Activity Report

» Current Poll
Do you leave the Aclient enabled?
YES - 82.81%
106 Votes
NO - 17.19%
22 Votes
Total Votes: 128
You may not vote on this poll.
» Stats
Members: 9,488
Threads: 11,748
Posts: 55,278
Top Poster: Nick (4,981)
Welcome our newest member, johno
» Online Users: 38
0 members and 38 guests
No Members online
Most users online at once 294, 06-30-2007 at 12:24 PM.
» March 2010
S M T W T F S
28 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 123
Reply
Old 04-13-2009, 06:35 PM   #1 (permalink)
 
Status: Super Altiris Admin
Join Date: 10-28-2005
Location: Colorado
Posts: 1,364


Outlook Run Activity Report

Can anyone assist me with this nested SQL scenario? I would like to check the table
Evt_AeX_Application_Start for the entries where internalname = 'Outlook' and productversion LIKE '8.%'

For each unique guid I would then like to check the first run and last run dates:

MIN([Start Date]) AS 'First Run'
,MAX([Start Date]) AS 'Last Run'

In the end I would like to get all machines that still have Outlook 98 installed and then determine the first and last time it was used.

I keep getting weird results where it is returning the first and last runs for all products associated with that guid, rather than just the outlook 8.x ones.


Thanks for any assistance.
__________________
Brandon
Brandon is offline   Reply With Quote
Old 04-13-2009, 07:01 PM   #2 (permalink)
 
Status: Super Altiris Admin
Join Date: 10-28-2005
Location: Colorado
Posts: 1,364


I came up with this, but I think the report is still off in the scenario where they have office 97 installed, then outlook alone was uprgaded to 2003.


Code:

SELECT sq.name
,'First Run'=(SELECTTOP 1 MIN(sq.[Start Date])FROM Evt_AeX_Application_Start t1 WHERE sq.[guid] = t1.[_resourceguid])
,'Last Run'=(SELECTTOP 1 MAX(sq.[Start Date])FROM Evt_AeX_Application_Start t1 WHERE sq.[guid] = t1.[_resourceguid])
FROM(
SELECT
t0.[name]
,t0.guid
,t2.[ProductName]
,t2.[ProductVersion]
,t2.[start date]
FROM Evt_AeX_Application_Start t2
JOIN vComputer t0
on t0.guid = t2.[_resourceguid]
WHERE t2.[internalname] ='Outlook'AND t2.[productversion] LIKE'8.%'
) sq
GROUPBY sq.[guid], sq.[name]
If anyone could clean this up I would be greatful.
__________________
Brandon
Brandon is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 11:29 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
vB.Sponsors
Altirigos