Software Report - How to clean it up?

Hi guys,
I just came up with the following query to get the list of software (in Add/Remove Programs) installed in All Systems collection and based on a certain string contained in the client's hostname.
Declare @CollID char(8)
Set @CollID = 'XXX00001'
SELECT DisplayName0, Count(*) AS 'Count', Publisher0, Version0, @CollID as CollectionID
FROM v_Add_Remove_Programs arp
JOIN v_FullCollectionMembership fcm on arp.ResourceID=fcm.ResourceID
JOIN v_R_System_Valid rsv on arp.ResourceID=rsv.ResourceID
WHERE fcm.CollectionID = @CollID and rsv.Netbios_Name0 LIKE '%SITECODE1%' GROUP BY DisplayName0, Publisher0, Version0
ORDER BY Publisher0, Version0
Now, the report works, but I've got a problem. How can I clean it up?
Let's make an example, I ran this query on a single machine (changed sitecode1 with my laptop's hostname) but I've got also double informations! For instance:
Microsoft Office Standard 2013 - Count is 2
Microsoft Visio Standard 2013 - Count is 2
Movie Maker - Count is 2
Photo Gallery - Count is 2
Windows Live Essentials - Count is 2
Microsoft Lync 2013 - Count is 2
You understand that if I ran this query on 3000 clients I will have a fake report!
Any suggestion?
Thanks a lot :)

Thanks, I'll give it a try.
In the meantime I had the idea to go ahead and search by product ID rather than by name.
Does anybody know the difference between ProdID0 (from v_Add_Remove_Programs) and ProductID0 (from v_GS_INSTALLED_SOFTWARE_CATEGORIZED)?
They're two different type of Product ID, is it possible that the second one only applied to the software deployed through SCCM?
When I try the below, it seems to work ok, the problem is that I need to get all ProdID0's! I think I should used the structured product id (rather than, for instance, Office14.VISIO):
Declare @CollID char(8)
Set @CollID = 'SMS00001'
SELECT ProdID0, Count(*) AS 'Count', DisplayName0, Publisher0, Version0, @CollID as CollectionID
FROM v_Add_Remove_Programs arp
JOIN v_FullCollectionMembership fcm on arp.ResourceID=fcm.ResourceID
JOIN v_R_System_Valid rsv on arp.ResourceID=rsv.ResourceID
WHERE fcm.CollectionID = @CollID and rsv.Netbios_Name0 NOT LIKE '%STC%' and rsv.Netbios_Name0 LIKE '%XXX1%' and (arp.ProdID0 LIKE 'Office15.LYNC' or arp.ProdID0 LIKE 'Office15.VISSTD' OR arp.ProdID0 LIKE 'Office14.VISIO' OR arp.ProdID0 LIKE 'Office14.PRJSTD' or arp.ProdID0 LIKE '{81BE0B17-563B-45D4-B198-5721E6C665CD}')
GROUP BY ProdID0, DisplayName0, Publisher0, Version0
ORDER BY Publisher0, Version0
With the above (when ran on a restricted number of clients) I seem to get the correct number of the specified software. Again, I probably need to use the huge product id rather than the small one since, for instance, the short version doesn't exist for Lync
2010.
Using {81BE0B17-563B-45D4-B198-5721E6C665CD} on all inventoried machines, (I hope) I'm getting a reliable count, it also split them by version. Any suggestion's appreciated.
Thanks
EDIT:
I've run a query against all software showing the prodID0 which seems to be fine, also when  I'd be using Office14.Standard:
What shall I do?

Similar Messages

  • How to clean old Earlywatch reports in Solution Manager

    Hi,
    We are using SOLMAN 7.0 for EarlyWatch alerts, everything is fine and EarlyWatch is generating Reports weekly. Now i had a concern on how to clean these Early Watch reports once they are like month old, Does SAP Standard Jobs take care of this or do we need to schedule any job that removes EarlyWatch alerts older than certain period.
    Thanks

    Yes there is....
    In transaction SOLUTION_MANAGER, click onto the EarlyWatch Alert tab -> next to the create button there is a button that say DELETE. If you click onto that it will bring up all of your sessions which you can select to delete.
    Hope this helps!

  • How to clean from dust Hp Pavilion 23-f200eg

    Hi all i have a HP Pavilion TouchSmart 23-f200eg All-in-One Desktop Pc , I got it one year ago am very happy with it 
    But since above a month ago it's making a noise , i check and it have dust inside because i never clean it before inside (just the display)
    I want to know how to clean from dust properly , because i have a little afraid from any damage 
    Should i remove cooler and cpu to clean ? , what tools or stuffs are good from cleaning inside this pc model ?
    Thanks a lot.

    Hi rcstipe,
    Welcome to the HP forums!
    I see you have a Photosmart B209a and are wanting to know how to clean the printhead via the software on Windows 8. I will definitely do my best to assist you with this.
    There is full feature software for your printer for Windows 8, so as you would have with the few previous versions of Windows, it's done through the HP Solution Center. If you don't have the HP software installed yet, please download and run the HP Printer Install Wizard to get the software installed.
    If you're not sure where to locate the clean printhead function once the software is installed, please have a look at Step four: Clean the printhead under Solution six: Print and evaluate a print quality diagnostic report and troubleshoot defects in this Fixing Ink Streaks, Faded Prints, and Other Common Print Quality Problems document to see where to locate it.
    Hope to hear back from you soon!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • How to clean from print driver hp B209a-M on windows 8

    How do I clean my print heads from the print driver hp B209a-M on windows 8

    Hi rcstipe,
    Welcome to the HP forums!
    I see you have a Photosmart B209a and are wanting to know how to clean the printhead via the software on Windows 8. I will definitely do my best to assist you with this.
    There is full feature software for your printer for Windows 8, so as you would have with the few previous versions of Windows, it's done through the HP Solution Center. If you don't have the HP software installed yet, please download and run the HP Printer Install Wizard to get the software installed.
    If you're not sure where to locate the clean printhead function once the software is installed, please have a look at Step four: Clean the printhead under Solution six: Print and evaluate a print quality diagnostic report and troubleshoot defects in this Fixing Ink Streaks, Faded Prints, and Other Common Print Quality Problems document to see where to locate it.
    Hope to hear back from you soon!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • I continue to get the /.HTML/Rce.Gen3 virus through my mailbox almost daily.  It is picked up by my anti-virus software.  How do I get rid of this permanently so I stop getting it daily?  Is it from a internet cache??

    I continue to get the /.HTML/Rce.Gen3 virus through my mailbox almost daily.  It is picked up by my anti-virus software.  How do I get rid of this permanently so I stop getting it daily?  Is it from a internet cache??

    I use MacKeeper on my MacBook Pro
    Ack! Get rid of that immediately! MacKeeper's bad news. Plus, it does a really awful job of actually detecting malware. See:
    Beware MacKeeper
    Mac anti-virus detection rates
    http://applehelpwriter.com/2011/09/21/how-to-uninstall-mackeeper-malware/
    My active accounts are clean, but the On My Mac gmail keeps and continues to repopulate all email, even after I trash them.
    If you're seeing messages remaining in GMail's All Mail folder after deleting them, that's normal. GMail keeps all messages in there, even after deletion, unless you manually delete stuff using GMail's web interface. See Hiding GMail’s “All Mail” from Apple Mail.
    If you're actually having trouble deleting e-mail from an On My Mac mailbox, there's probably something wrong with your mailboxes.

  • How to clean the PC of QT and reinstall qt7.6?

    1) QT-7.6 loads on XP-prof_sp3 OS PC with DirectX-9, but on running gives error as follows:
    DLL server window: QTplayer.exe - Application error:
    The exception unknown software exception (0xc0000409) occurred in the application at location 0x0040130d.
    2) After repeated trials in installation the QT-7.x, it is neither running nor de-installing from start-up or control panel. It rolls back de-installation after almost completing it.
    3) Also tried QT removal from system as given in the qt-support site i.e delete folders and qt files from win/system32 and recycle bin after de-installing using regcleaner>qt de-install using qt uninstall start-up menu>run regclean>shutdown>restart>reinstall qt-7.6>gives installation error now....???
    4) How to clean the PC of QT.
    Please help
    as

    Please refer to the below shown link as I feel this might be helpful to you
    http://www.instructables.com/id/Clean-Your-Sticky-Laptop-Keyboard/?ALLSTEPS
    Hope this helps, for any further queries reply to the post and feel free to join us again
    **Click the KUDOS star on left to say Thanks**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    Thank You,
    K N R K
    Although I am an HP employee, I am speaking for myself and not for HP

  • How to clean the windows registry after an unclean install or previous SP2/SP1 uninstall.

    How to clean the windows registry after an unclean install or previous SP2/SP1 uninstall.
    <b>Procedure:</b>
    Run regedit -
    1. Go to HKEY_LOCAL_MACHINE\Software and delete iPlanet folder,
    2. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services delete the entries for :  adminXXX-serv,  iAS60, slapd4.1, slapd-servername.
    Run regedt32 -
    1. Go to HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Enum/Root    changed the permission for key LEGACY_SLAPD-xxx from security, and delete it,    check in other controlSet (002/003) also,  including currentControlSet.
    If you are cleaning the Registry after an uninstall, than after cleaning
    registry delete the iAS home dir and "reboot" the computer.

    Sanjeev:
    Maybe you can help. I haven't been able to resolve this one "small" problem which is preventing me from rolling out iWS6.0 SP2. I created a new instance of the server using "Add Server" so that I have 2 Web sites (e.g. test1.domain.com and test2.domain.com), but the 2nd server instance is pointing to the same HTML location as the first (i.e. http://test2.domain.com takes you to the same location as http://test1.domain.com). What do I need to change and where to fix this? Need a VERY quick answer to this to implement a production Web server. I've tried the suggestions made so far (see: http://softwareforum.sun.com/servlet/ProcessRequest?RHIVEID=181&RPAGEID=135&HOID=50B500000008000000966A0000&UCATEGORY_0=_23_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=server+instances&USEARCHCONTEXT_QUESTION_S=0) but nothing has resolved this problem. If you have any ideas at all, I'd appreciate if you could let me know :)
    Thanks!

  • How to clean up imac to run faster osx 10.6.8

    Hi I have an i mac about 2 years old os x 10.6.8, how to make it run faster and clean up hard drive. how do i check speed

    How full is your hard drive?
    How much RAM is installed in your iMac?
    Have you emptied your iMac's Trash icon in OS X Dock, lately?
    Apple Mail and iPhoto have its own Trash that needs to be emptied, have you emptied these, lately?
    Do you run any anti-virus software or hard drive "cleaning" software?
    How many apps do you run concurrently on your iMac?

  • How to clean iphone 4s

    how to clean my iphone 4s white piece, mud gets accumilated @ my menu botton, can some one help me out of this

    iPhone User Guide (For iOS 5.1 Software)

  • Running 10.6.8 with quicken 2006.  Would like to upgrade to a new machine/software.  How can I save my quicken data?

    Would like to upgrade to a new Macbook Pro machine/software.  How can I save my quicken data from quicken 2006?

    Users have reported that Quicken 2015 for Mac is an upgrade of the generally loathed Quicken Essentials for Mac.
    I recommend you continue your Quicken operating experience by purchasing Quicken 2007 for Mac directly from Intuit for $15.  It will open your Quicken 2006 file and operate as you have before.
    To obtain Quicken 2007 for Mac for $15:
    Use the chat feature for Quicken for Mac: Quicken 2007 for Lion: Shopping and Buying: Buying Quicken on this page

  • Going slow how to clean

    loading slow - how to clean ?

    This appears to be the model iMac8,1 20" screen?
    I have a same era 24" screen iMac, which I recently upgraded with additional memory, and if my memory serves me correctly, memory can be upgraded on the 20" models also. I upgraded to (the maximum for my particular iMac) 6GB SDRAM (from 2GB). It make an instant and significant difference. Like a new machine! If you are prepared to spend some money, investigate installing 2 x 2GB SDRAM modules. Most good online memory stores help with the selection of the correct memory modules.
    Otherwise I can highly recommend a complete backup of your data, a fresh install of OS X (10.5.8), and reinstall your files from the backup. I did this and this also made a significant difference. I'm my mind it was definitely worth the pain of the re installation of all my software.
    I have little experience actually improving system performance with software - in my mind it is more error prone and problematic and eventually takes more time than a fresh install.

  • In alv report , how to reserve 20 lines from beginning of page

    hi experts
    in alv report , how to reserve 20 lines from beginning of page.
    regards
    subhasis.

    If by reserve you mean should not move on scrolling then make them KEY from fieldcatalog.
    But I think maximum of 10-12 can be handled by that.
    Regards,
    Amit
    Reward all helpful replies.

  • How to clean project from comman line ?

    How to clean project from comman line ?
    I would like to invoke the same functionality as in Flex
    Builder Project -> clean... -> clean all projects...
    but from command line is it possible ?

    You can:
    1) Perform a project clean up (p.153 of the user manual) - it removes any unused recordings, samples and other files
    2) Consolidate project (p. 154 of manual) - this copies all the used audio material into the project folder and also deletes any empty folders within project folder, making it easier to navigate
    3) Save project as a copy - this creates another project folder, but without all the backups and other additional files

  • Check boxes in ALV Report how to do ?

    ALV report how to keep check box  in the first field?
    thanks in advance..
    chalapathi

    hi,
        Check this small code..  U will get clear idea.
    Report.
    data : begin of it occurs 0,
            MATNR TYPE MATNR,
            c1 ,                  " CHECK BOX FIELDS
            c2,
            end of it.
    type-pools : slis.
    data itlog type slis_t_fieldcat_alv.
    data walog type slis_fieldcat_alv.
    SELECT MATNR
    FROM MARA
    INTO TABLE IT .
    ****INSERTING  CHECKBOX  IN CHANGE MODE
    WALOG-FIELDNAME = 'C1'.
    WALOG-TABNAME = 'IT'.
    WALOG-SELTEXT_M = 'CHECKBOX1'.
    walog-CHECKBOX = 'X'.
    WALOG-EDIT = 'X'.
    APPEND WALOG TO ITLOG.
    ****INSERTING  CHECKBOX  IN DISPLAY MODE
    WALOG-FIELDNAME = 'C2'.
    WALOG-TABNAME = 'IT'.
    WALOG-SELTEXT_M = 'CHECKBOX2'.
    walog-CHECKBOX = 'X'.
    WALOG-EDIT = ''.
    APPEND WALOG TO ITLOG.
    WALOG-FIELDNAME = 'MATNR'.
    WALOG-TABNAME = 'IT'.
    WALOG-SELTEXT_M = 'MATERIAL'.
    walog-CHECKBOX = ''.
    WALOG-EDIT = 'X'.
    WALOG-NO_ZERO = 'X'.              " LEFT ZEROS WILL CUT
    APPEND WALOG TO ITLOG.
    *WALOG-FIELDNAME = 'ICON'.
    *WALOG-TABNAME = 'IT'.
    *WALOG-SELTEXT_M = 'ICON'.               "IN FIELDCATALOG ADDING THAT ICON
    *walog-ICON = 'X'.
    *walog-just = 'R'.                   " RIGHT JUSTIFICATION OR LEFT
    **WALOG-EDIT = ''.
    *APPEND WALOG TO ITLOG.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = 'ZALV_SIMPLE1'
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
       IT_FIELDCAT                       =   ITLOG
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          =  IT
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Thanks and Regards,
    surya

  • Hyperlink on Crystal Report: how to popup a window without menubar?

    Hyperlink on Crystal Report: how to popup a window without menubar?
    Hello Experts!
    I'm using VS2003 with Crystal Reports for VS2003.
    I need to show a popup window clicking a hyperlink text object on my crystal report.
    On the CrystalReportViewer I have set up HyperlinkTarget=_blank, and it's working fine.
    But when I click on the hyperlink and shows the popup window, how can I show the popup window without menubar, toolbar, directories, etc.
    Something like:
    window.open('../MyPage.html?id=id001" + Cad + "',null,'menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=yes,status=yes')

    Adam is correct. The closest you can get is setting the CrystalReportViewers HyperlinkTarget to _blank. It was seen as a potential security vulnerability to allow you to run scripts from a Crystal Reports. In our Enterprise product you can use a reg key called EncodeHTMLForSingleLineFieldObjects to control whether this can be turned on or off.
    Unfortunately this was never ported over to our .NET CrystalReportViewer.
    This is referenced in notes 1202803, 1219298, and 1219301.
    https://www.sdn.sap.com/irj/sdn/businessobjects-notes
    Edited by: David Hilton on Jul 16, 2008 4:17 PM

Maybe you are looking for

  • File transfer problem during ISE 1.3 upgrade

    We have problem running the upgrade command: iseadm01/admin# application upgrade cleanup Application upgrade preparation directory cleanup successful iseadm01/admin# application upgrade prepare ise-upgradebundle-1.2.x-to-1.3.0.876.x86_64.tar.gz FTP G

  • Navbar font appears miniscule in some browsers

    Why does the Navbar font size appear miniscule in some browsers, but fine in others? My Website is paranormalstateillustrated.com I'm using iWeb '08 version 2.0.4, "Darkroom" theme. Navbar items appear miniscule in Safari version 3.1.2, but are "norm

  • Workflow Blocks

    I have a workflow in which I am utilizing a multiline container element for parallel processing.  According to my research, the BLOCK will be executed for each line in the container. My problem is that the BLOCK is currently defined as just one step.

  • How to mesure/benchmark performance of a new database on new server?

    Hi there I have two oracle servers with following (same) details: RHEL 5.8 64-bit Oracle 10gR2 - 10.2.0.5.8 ASM 10gR2 - 10.2.0.5.8 Server A: RAM 32GB, 8 CPUs @ 3.00GHz Server B: RAM 128GB, vCPUs 16 cores Server A (physical server) already has a datab

  • Quick Time, Importing, exporting

    I recently upgraded my system and re-installed Premiere Pro CS6, moved my video hard drives over and opened the working files I had started on my old system. On my first install I had a codec error, which I resolved (https://forums.adobe.com/message/