Problems getting days since last used for licensed software

Using SCCM 2007 SP2 R3
We've been required to start removing certain licensed software after 60 days of non-use.  Tried the canned reports, but needed to do a customized one to get all the needed info:
SELECT DISTINCT SYS.Netbios_Name0 AS 'NAME', CSYS.Manufacturer0 AS 'MFG', CSYS.Model0 AS 'MODEL'
, PCB.SerialNumber0 AS 'SN#', SCUM.TopConsoleUser0 AS 'TOP USER'
, RUA2.LastUserName0 AS 'LAST APP USER', OSYS.Caption0 AS 'OS', SMSIS.SMS_Installed_Sites0 AS 'SITE'
, SYS.Resource_Domain_OR_Workgr0 AS 'DOMAIN', RUA2.ExplorerFileName0 AS 'FILE', RUA2.FileDescription0 AS 'PRODUCT'
,RUA2.ProductVersion0 AS 'METERED VERSION', SWF.FileVersion AS 'FILE VERSION'
, CASE WHEN MIN(DateDiff(day, RUA2.LastUsedTime0, GetDate())) IS NULL THEN CAST('NOT USED'AS VARCHAR)
ELSE CAST (MIN(DateDiff(day, RUA2.LastUsedTime0, GetDate())) AS VARCHAR)
END AS 'VISIO LAST USED (> 60 DAYS)'
FROM dbo.v_R_System SYS
JOIN dbo.v_GS_SoftwareFile SWF ON SYS.ResourceID = SWF.ResourceID
JOIN dbo.v_Add_Remove_Programs ARP ON SYS.ResourceID = ARP.ResourceID
JOIN dbo.v_GS_COMPUTER_SYSTEM CSYS ON SYS.ResourceID = CSYS.ResourceID
JOIN dbo.v_GS_PC_BIOS PCB ON SYS.ResourceID = PCB.ResourceID
JOIN dbo.v_GS_OPERATING_SYSTEM OSYS ON SYS.ResourceID = OSYS.ResourceID
JOIN dbo.v_RA_System_SMSInstalledSites SMSIS ON SYS.ResourceID = SMSIS.ResourceID
JOIN dbo.v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP SCUM ON SYS.ResourceID = SCUM.ResourceID
LEFT OUTER JOIN dbo.v_GS_CCM_RECENTLY_USED_APPS RUA2 ON SYS.ResourceID
= (SELECT RUA2.ResourceID WHERE RUA2.ExplorerFileName0 = 'acrobat.exe')
WHERE (SWF.FileName = 'acrobat.exe'
AND SWF.FilePath LIKE 'c:\program%')
AND SYS.Operating_System_Name_and0 LIKE '%workstation%'
AND SYS.Client0 = '1'
AND SYS.Obsolete0 = '0'
AND ARP.DisplayName0 LIKE '%adobe %acrobat %'
AND ARP.DisplayName0 NOT LIKE '%mui%'
AND ARP.DisplayName0 NOT LIKE '%viewer%'
AND ARP.DisplayName0 NOT LIKE '%pack%'
AND ARP.DisplayName0 NOT LIKE '%update%'
AND ARP.DisplayName0 NOT LIKE '%web%'
AND ARP.DisplayName0 NOT LIKE '%modeler%'
AND ARP.DisplayName0 NOT LIKE '%hotfix%'
AND ARP.DisplayName0 NOT LIKE '%browser%'
AND ARP.DisplayName0 NOT LIKE '%workgroup%'
AND ARP.DisplayName0 NOT LIKE '%english%'
AND ARP.DisplayName0 NOT LIKE '%extended%'
AND ARP.DisplayName0 NOT LIKE '%cpsid%'
GROUP BY SYS.Netbios_Name0, CSYS.Manufacturer0, CSYS.Model0, PCB.SerialNumber0, SYS.User_Name0, OSYS.Caption0, SMSIS.SMS_Installed_Sites0
, SYS.Resource_Domain_OR_Workgr0, RUA2.ExplorerFileName0, RUA2.ProductName0, RUA2.FileDescription0
, RUA2.ProductVersion0, RUA2.LastUserName0, SWF.FileVersion, SCUM.TopConsoleUser0
HAVING MIN(DateDiff(day, RUA2.LastUsedTime0, GetDate())) > '60'
OR MIN(DateDiff(day, RUA2.LastUsedTime0, GetDate())) IS NULL
ORDER BY 'DOMAIN', 'SITE', 'NAME'
It produces output similar to the below:
NAME
MFG
MODEL
SN#
TOP USER
LAST APP USER
OS
SITE
DOMAIN
FILE
PRODUCT
METERED VERSION
FILE VERSION
ACROBAT LAST USED (> 60 DAYS)
ECH-WS73030
BIOSTAR Group
P43D3
None
vha19\vhadengethoh
NULL
Microsoft Windows 7 Enterprise
ECH
VHA19
NULL
NULL
NULL
11.0.06.70
NOT USED
ECH-WS60512
Dell Inc.
OptiPlex 990
FZVCHS1
vha19\vhaechconnel
VHA19\VHAECHSchneA
Microsoft Windows 7 Enterprise
ECH
VHA19
Acrobat.exe
Adobe Acrobat
11.0.03.37
11.0.06.70
87
Running into two problems:
  1.  Despite the product actually being used on some computers, Recently Used Apps (RUA) View shows no usage (none in other SW Metering views, either) and not sure what the issue is--SW and HW inventory are both working perfectly fine, as
are the metering processes on the site server.  Gives me a lot of false positives for not being used.
  2.  Have found some cases in which a previous version was installed, and used, then later upgraded, but not used--however, seems no way to filter out just usage for the CURRENT version.  Have looked at comparing the SW File Version and the
RUA.File Version, but they are often not identical, particularly if the product was patched.
Is there a better way to determine usage, or a better custom report to use?
Thanks.

I'm cleaning up old post, did you figure this out, if so how?
http://www.enhansoft.com/

Similar Messages

  • Problem getting calls since last software update iphone 4s

    Since latest software update my 4s wont ring unless the phone is unlocked, the missed call showes in notifacations right away, is anyone else having this issue?

    Are you sure that "Do Not Disturb" setting has not been accidentally turned on ?

  • MC46 - How is days since last consumption calculated?

    Customer is using MC46 (Analysis of Slow-Moving Items).
    They wish to know where does the days since last consumption come from ?
    Regards.
    Phil.

    hi,
    This depends on the GR which is made on which date...so based on that date till today it will calculate the days...
    Hope it helps..
    Regards
    Priyanka.P

  • Why is Firefox is crashing on opening. I have not installed any new plug-ins etc. since last using it successfully. I have attempted to open in safe mode but without success. Crash ID: bp-91282c25-7a56-4137-a436-ac0312111019

    I have not installed any new plug-ins etc. since last using it successfully.

    Further info
    Please follow the instructions in the article from the above post. In fct you have a second suspicious file showing on your report so look specifically at and scan files ''gblrofmx.dll'' & ''sprotector.dll''
    If possible I suggest you quarantine the files rather than deleting them immediately. Also note that you may need to start Windows in safe mode (or Windows safemode with network access) in order to find and move or delete the files.
    * Use F8 to access Windows safe mode <br /> http://windows.microsoft.com/en-US/windows7/Start-your-computer-in-safe-mode <br />http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true
    For forum cross referencing purposes
    * Report for CrashID [https://crash-stats.mozilla.com/report/index/27aa708f-12d0-4b17-ac96-0961a2130115 27aa708f-12d0-4b17-ac96-0961a2130115]
    ** Crash Signature: nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*)
    ** related bug 801394, and contributors thread [https://support.mozilla.org/en-US/forums/contributors/708895 nsInputStreamPump::OnInputStreamReady Crashes (Malware)]
    ** files without ID ''RocketDock.dll , gblrofmx.dll , sprotector.dll''
    * sprotector.dll some suspicions about this being possible malware trojan <br />''Bug 785940 - Firefox startup crash in SECMOD_GetModuleSpecList @ __hash_open with SProtector.dll (Safend Protector, Sophos SafeGuard or TrojanDownloader:HTML/Sprotector.A?) ''<br /> thread [/questions/937251 Firefox crashes]
    * gblrofmx.dll likely to be the malware responsible for current crashes

  • Firefox constantly freezes on the screen. firefox not responding warning appears on the top of left on the screen. The problem is occuring since last week. After restarting firefox, properly working untill the new prob. come

    Firefox constantly freezes on the screen. firefox not responding warning appears on the top of left on the screen. The problem is occuring since last week. After restarting firefox, properly working untill the new prob. comes.

    The default of the pref network.http.max-connections has been increased from 30 to 256 in Firefox 6+ versions.
    Try to decrease the value of the pref <b>network.http.max-connections</b> from 256 to 30 as used in Firefox 3 versions.
    *https://support.mozilla.com/kb/Firefox+never+finishes+loading+certain+websites
    See also:
    *http://blog.bonardo.net/2011/09/30/is-your-firefor-freezing-at-regular-intervals
    *Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/

  • My mobile is getting hang since last 1 hour, torch of mobile is still on and the touchscreen is not working, I can't unlock my mobile. Can anyone help me to fix it

    My mobile is getting hang since last 1 hour, torch of mobile is still on and the touchscreen is not working, I can't unlock my mobile.
    Can anyone help me to fix it?

    Please press the power- and the homebutton simultaneously until the apple logo will appear ( 10 sec.). That´s it.

  • Get # of Days since last modified

    Is there anyway to have a number column that shows the number of days since the item or page was last updated? I was hoping to use a calculated column where [Today]-[Modified] but that doesn't work. A workflow wouldn't work because it would have to keep
    continuously running to keep that column updated.  Any ideas?
    Thanks.   
    Nick Hurst

    We ended up finding some posts online suggesting using Jquery to display this information on the page.  You can put this code in your page layout to display the number of days since the page was last modified or any date field you have associated
    with the page. 
    What we ended up doing was creating a calculated field to just grab a date field (in our case the column 'ReviewDate') and put it in the proper format:
    =TEXT([ReviewDate],"MM/DD/YYYY")
    Then we added a div to the page layout that has this date but is not displayed on the page:
    <div class="review-date-text" style="display:none;">
            <SharePoint:CalculatedField FieldName="ReviewDateDisplay" runat="server" ControlMode="Display"/>
    </div>
    Here's the code, I'm not a developer so there are probably better ways to do this but I was able to piece this together from a couple different posts:
    //The following gets the number of days since article was reviewed and writes the value into a right col div
    //Gets Todays date and format it as date
    var today = new Date();
    var dd = today.getDate();
    var mm = today.getMonth();
    var yyyy = today.getFullYear();
    if(dd<10) {
    dd='0'+dd
    if(mm<10) {
    mm='0'+mm
    var todaysDate = new Date(yyyy,mm,dd);
    //Finds the text value of the review date
    //The review date is in the review-date-text div
    var reviewdatetext = jQuery(".review-date-text").text();
    var reviewdatetext = jQuery.trim(reviewdatetext);
    //Parses the review date and formats as a new date
    var dateParts = reviewdatetext.split('/')
    var reviewyear = dateParts[2];
    var reviewday = dateParts[1];
    var reviewmonth = dateParts[0]-1;//January is 0!
    var reviewDate = new Date(reviewyear,reviewmonth,reviewday);
    //Finds the number of days difference between today and review date
    oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds
    var diffDays = Math.round(Math.abs((todaysDate.getTime() - reviewDate.getTime())/(oneDay)));
    //Appends the number of days to the review-date div in the right column
    jQuery("<div class='Custom-Date-Review'>"+diffDays+" days ago</div>").appendTo("#review-date");
    Works great for us, hope that helps someone else. 
    Nick Hurst

  • Need help with error -50!!!!!!! getting it since last week!

    i keep having an error showing up when im trying to connect to the itunes store from my computer.
    the error is
    We could not complete your iTunes Store request. An unknown error occured (-50).
    There was an error in the iTunes Store.
    Please try again later.
    i have been getting this message since last week.
    does it have something to do with day lights saving time?
    Message was edited by: mrznehabieber14

    Hi Try this, i was having the same problem and doing the following worked for me" i cant take the credit i found this in another forum posted by MIKEFILA, but i know what you going thru was so stressed.
    I just read someone's suggestion to access Parental Controls under Preferences. Choose to disable the Store and then iTunes U. Update and then voila! The iTunes U appears; even though you just "disabled" it. Next go back into Preferences/Parental Controls and "re-enable" the Store... Good Luck!

  • Report - Return days since LAST activity

    Hi,
    I need a report that returns "All open SRs with the amount of days since the LAST completed activity of type X" (so we can see when the activity needs to happen again)
    I have managed to create a report that brings back "all open SRs with the amount of days since EVERY completed activity of Type X (so if the activity happened 10 times i get the report returning the SR 10 times).
    I was hoping i could use something like a min function in a pivot table to just return the days since the LAST one but am getting nowhere.
    Any ideas?!?!?!
    Thanks in advance
    Rich

    Hi Guys,
    I'm doing a similar report also.
    I have a analysis based on Activities that returns a list of service requests.
    I have inserted a column with a timediff function to tell me how many days old the activity is. e.g.:
    SR 1, act1, 2 days old
    SR 1, act2, 4 days old
    SR 2, act1, 6 days old
    SR 3, act1, 3 days old
    SR 3, act2, 9 days old
    Using a pivot table i display only the first activity for each SR.
    SR 1, act1, 2 days old
    SR 2, act1, 6 days old
    SR 3, act1, 3 days old
    However i now want to be able to sort the pivot table in descending order of the Day Old column.
    Unfortunately i can't get this to work.
    Any idea's?

  • Determine Days Since Last Visit

    I think I may be overthinking this problem.
    What I have is a table that consists of membership data including visit dates. For each visit date, I need to determine the number of days since the last visit.
    I'm trying a combination of CTEs and partitions, but it is simply not coalescing in my head.
    Following is a sample set of data;
    KeyID          MemberID          AdmitDate          Last_Admit_Days
    1                 2601                 2014-04-17         
    2                 2001                 2014-05-04         
    3                 1001                 2014-05-15         
    4                 8001                 2014-05-28         
    5                 2601                 2014-05-23         
    6                 2601                 2014-05-28         
    7                 9301                 2014-03-21         
    8                 9301                 2014-05-15         
    9                 9301                 2014-05-21         
    10                8601                2014-05-26         
    11                3601                2014-04-13         
    12                3601                2014-05-05
    I tried putting that in as a code block, but it ended up putting everything on one line.
    Anyway, Member # 2601 has three admit dates; 2014-04-17, 2014-05-23 and 2014-05-28. So, the number in the Last_Admit_Days column for those records, should be the DATEDIFF in days between the AdmitDate and the AdmitDate of the immediately prior AdmitDate
    for #2601, like this;
    KeyID          MemberID          AdmitDate          Last_Admit_Days
    1                 2601                 2014-04-17         
    0
    5                 2601                 2014-05-23         
    36
    6                 2601                 2014-05-28         
    5
    I am stumped. Maybe the weekend will refresh me to take a better stab at it, but it's confounding me at the moment and I thought I'd ask here to see if anyone had a quick idea off the top of their heads.
    I truly appreciate any assistance.
    Thanx!

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. There is no such crap as a“key_id” in RDBMS; that night mare is mix of meta-data and attribute proprieties.
    CREATE TABLE Visits
    (member_id CHAR(4)NOT NULL,
    admission_date DATE NOT NULL,
    PRIMARY KEY(member_id,admission_date));
    INSERT INTO Visits
    VALUES
    ('2601','2014-04-17'),
    ('2001','2014-05-04'),
    ('1001','2014-05-15'),
    ('8001','2014-05-28'),
    ('2601','2014-05-23'),
    ('2601','2014-05-28),
    ('9301','2014-03-21'),
    ('9301','2014-05-15'),
    ('9301','2014-05-21'),
    ('8601','2014-05-26'),
    ('3601','2014-04-13'),
    ('3601','2014-05-05');
    SELECT member_id, admission_date,
           DATEDIFF(DAY,
                LAG(admission_date)
                OVER(PARTITION BY member_id
                     ORDER BY admission_date),
                 admission_date)
           AS visit_delta
      FROM Visits
      ORDER BY member_id, admission_date;
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • TM Backup Failed - too many days since last backup

    I moved and it took awhile for me to plugin my TM drive. Finally plugged it in and got an error that says "Backup Failed it has been 89 days since your last backup." There is no option to start a new backup. How do I fix this?

    Hi Jake,
    Try repairing the TM backup using Disk Utility.
    If you back up to a Time Capsule or network disk:
    Open the Time Machine pane of System Preferences, and slide the switch to Off.
    Open Disk Utility, which is in the Utilities folder in the Applications folder.
    Make sure the Time Capsule or network disk is turned on and available.
    Open a Finder window, select your Time Capsule or network disk in the Shared section of the sidebar, and click Connect. If necessary, enter your user name and password.
    On the Time Capsule or network disk, select the disk or volume that contains Time Machine backups. Depending on how your Time Capsule is set up, there may be one or more disks or volumes.
    Locate your backup, and drag it to the Disk Utility sidebar.
    You can identify your backup by looking for your computer’s name in the backup’s filename.
    Select your backup in the Disk Utility sidebar, and then click Repair.
    If the repair is successful, attempt to back up using Time Machine. If the repair is not successful, delete your backup and start a new backup.
    Hope this helps.
    Neville

  • Problems while roaming since last update of an iPhone 5

    Since last update the phone loses signal intermittently while a regular phone in the same network/account has a steady, strong signal. I've reset network settings and since it didn't work I did a hard reset, erasing and restoring the phone. The problem persists

    Hey Manuel Flores-Arce,
    Thanks for the question. Based on what you stated, it seems like the iPhone is having a service issue while roaming. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    iPhone and iPad: Using cellular networks while in another country - Apple Support
    iPhone cellular data connection issues - Apple Support
    If you see No Service in the status bar of your iPhone or iPad - Apple Support
    Thanks for using Apple Support Communities.
    Cheers,
    Mario

  • Lion installation problem- says hard drive is used for Time Machine back-ups!

    I just purchased & downloaded Lion to install on my Apple laptop, but when I went to install it, I got the message:
    "This disk is used for TimeMachine back-ups."
    What the heck? As I use an external drive for TM back-ups, I'm really confused!  How can I get Lion to install on my hard drive?  I went so far as to turn off TimeMachine (see image, below), but it's still not working.
    Any ideas?  This is really frustrating!

    Kathy,
    Intel and Universal apps should be ok.  You can check this massive list for specifics on any application incompatibilities.
    http://roaringapps.com/apps:table/tags/_a/index_tags/_a
    Just to confirm, was the problem Norton or was the backup directory present?
    Glad your up and running now.
    @Colin, Yeah it's the leftmost black and yellow.  It's an image burned in my head from the old PC days.

  • [solved] Problem with HPLip since last update

    Hi,
    since last system update my printer (HP LaserJet M1212nf) which is shared via network does not work any longer. Scanning via xsane works only printing is affected.
    Everytime if I want to print any document all I'll get is something like this:
    http://privatepaste.com/download/c84615c35d
    There isn't any error message or similar. Printing starts as expected, but the result would look like above
    hplip 3.12.4-1 and also the required plugin is installed correctly.
    kernel 3.3.7-1-ARCH
    cups 1.5.3-3
    Can anyone help me?
    regards,
    gnux
    Last edited by gnux83 (2012-06-02 21:50:10)

    I have no clue what happened between updates but it seems that my printing is borked.
    First off, details:
    HP Deskjet F4140, using the hpijs ppd file that comes with hplip. I've tried printing in LibreOffice and vim. Both produce this strange page:
    http://imgur.com/G6Ex6
    I'm at a complete loss for what to do. I've tried removing all the printers from CUPS, unplugging and replugging the printer, hp-setup, etc. I even tested the "device" tab under Printer Options and tried to make it use Postscript instead of PDF. I think there's something wrong in the configuration and I don't know where to look or what to search for on the net. I tried searching for various phrases here on the forum and the CUPS wiki page had nothing on this subject...
    Help?

  • Get the WSDL-File used for proxy generation

    Hello everybody!
    I created a Web Service Proxy:
    SE80 -> Select Package -> Enterprise Services -> Client Proxies -> New -> WSDL Source: Local File.
    Everything worked out fine. I was able to create that Proxy.
    Now I would like to look at the WSDL-File that has been used:
    If I take a look at that Proxy by SE80 -> Select Package -> Enterprise Services -> Client Proxies -> [Select Proxy] -> Display in new Window -> Goto: The Menue Entry "Display WSDL Document" unfortunately is disabled.
    I have not configured the integration builder.
    Is there a possibility to get the WSDL-file that has been used for the generated proxy? Does anybody know, if the WSDL-file, that has been used for the proxy generation is archived somewhere in the system?
    Thanks,
    Andreas

    Hello,
    Thanks for your reply.
    I am using SAP ECC 6.0:
    SAP_BASIS     700     0010     SAPKB70010     SAP Basis Component
    SAP_ABA     700     0010     SAPKA70010     Cross-Application Component
    Unfortunately the tab "Proxy Generation" at Utilities -> Settings is not available with my release.
    Any other idea?
    Greetings,
    Andreas

Maybe you are looking for

  • WRT54G firmware failure leaving no access to router config

    I have a WRT54G router.  Running Vista SP2 64-bit on a laptop wired to router.  When I first tried to upgrade the firmware I was connected wirelessly.  (I know, please just think it but don't type it)  During the upgrade the internet connection disco

  • Home Sharing - works in WiFi, not Ethernet: Help!

    Hi all - I've had an Apple TV happily working with Home Sharing from a Mac Mini when both were on the WiFi network from my Time Capsule router. However, I've just installed Ethernet cabling at home so all three are now connected on a wired network, a

  • MacBook Pro for CAD

    Hello All, I am a Mechanical Engineering student. Most of my classes involve some work with Autodesk Inventor, Solid Edge, and other 3D CAD programs. I currently own a 13" MacBook Unibody(Late 2008, base model). I upgraded the RAM from 2GB to 4GB abo

  • Upgrading 1st Gen to run Mavericks?

    hi all. i have first generation mac pro where i am running a bunch of boot camp installations and i am stuck on Lion due to (presumably) processor or firmware or some other limitations. i realize there is a new mac pro coming out but i am not excited

  • To_number conversion error in OWB runtime

    I have a mapping in OWB 10.1.0.5 that does something like that : select t1.a_field,to_number(t2.a_stringField) from a_table t1 an_other_table@source_schemas@source_database t2 where (....) the t2.a_stringField may contain: '1256' '5' '12' '5,8' when