SCCM Reporting Question - Removing Duplicates (query)

I have a query created for a software usage report in SCCM. When there are multiple versions of the same software (Acrobat) installed on the same machine, I will receive duplicate results for the same machine. For example, it will come back with Acrobat
9 and another Acrobat 10 for HOSTNAME1. However, only Acrobat 10 has a usage count. Is it possible to delete the row for Acrobat that has a software usage count of "0/null" if there is another Acrobat results showing up that actually has a usage
count? Let me know if I need to clarify. Any suggestions would be appreciated.

Without the query that you are using, it will be impossible for anyone to answer this.
http://www.enhansoft.com/

Similar Messages

  • MBAM with SCCM Reporting Question

    My company has SCCM 2012 R2 deployed with a CAS and 5 primary sites.  If we install MBAM with SCCM integration on all the primary site servers, will the MBAM reports be limited to the primary site, or will there be reports at the CAS level that cover
    all of our primary sites?

    Ken,
    In the 'About MBAM 2.0 SP1' article, in the 'What's new in MBAM 2.0 SP1' section under the heading 'Ability to install MBAM on a primary site server when you install MBAM with Configuration
    Manager' it talks about the previous requirement to install MBAM on a central site server. Additionally, under the sub-heading 'System Center 2012 Configuration Manager', it states that you can install MBAM on a primary site server or on a central administration
    server...
    Hope this helps,
    David
    MDOP on the Springboard Series on TechNet

  • SCCM Reporting question

    Is there another way to run a report in SCCM than using SQL to run it.
    MSB

    Have you configured a Reporting Services Point?
    You can find all the information you need about Reporitng in ConfigMgr 2012 here:
    http://technet.microsoft.com/en-us/library/gg712698.aspx
    And here is a step-by-step guide for setting it up:
    http://www.windows-noob.com/forums/index.php?/topic/4550-using-sccm-2012-rc-in-a-lab-part-11-adding-the-reporting-services-point-role/

  • SCCM Report for Applicable and Installed Updates Collection Wise

    Hi All, I was looking for a report on Applicable and Installed Updates Collection Wise and got this below query on the Internet and want to create a SCCM report with this below query. How to make this query working in SCCM report?
    Do I need to add prompts, if yes please guide me on adding prompts.
    SELECT
    DISTINCT
    SYS.Name0
    AS [Server Name], SIS.SMS_Installed_Sites0 AS [Site Code], UCS.Status AS [Patch Status Code],
    CASE WHEN UCS.Status = '2' THEN 'Applicable' WHEN UCS.Status = '3' THEN 'Installed' ELSE '' END AS 'Patch Status', UI.BulletinID AS [Bulletin ID],
    UI
    .ArticleID AS [Article ID], UI.
    Title
    FROM
    v_R_System AS SYS LEFT OUTER
    JOIN
    v_Update_ComplianceStatusAll
    AS UCS ON SYS.ResourceID = UCS.ResourceID INNER
    JOIN
    v_UpdateInfo
    AS UI ON UCS.CI_ID = UI.CI_ID INNER
    JOIN
    v_RA_System_SMSInstalledSites
    AS SIS ON SYS.ResourceID = SIS.
    ResourceID
    WHERE
    (UCS.Status IN ('2', '3')) AND (UI.ArticleID IN ('972270', '974392', '973904', '969947')) AND (SYS.Name0
    IN
    (SELECT DISTINCT v_FullCollectionMembership.
    Name
    FROM v_FullCollectionMembership INNER
    JOIN
    v_R_System
    ON v_R_System.ResourceID = v_FullCollectionMembership.ResourceID AND v_R_System.Active0 = 1 AND
    v_FullCollectionMembership
    .CollectionID IN ('Collection ID'
    ORDER
    BY
    [Patch Status Code]

    Yes it can be done and please run the query which i have shared in the thread
    I again pasted the query for you below..
    SELECT DISTINCT
    SYS.Name0 AS [Server Name], CASE WHEN UCS.Status = '2' THEN 'Applicable' WHEN UCS.Status = '3' THEN 'Installed' ELSE '' END AS 'Patch Status',
    UI.BulletinID AS [Bulletin ID], UI.ArticleID AS [Article ID], UI.Title
    FROM         v_R_System AS SYS LEFT OUTER JOIN
                          v_Update_ComplianceStatusAll
    AS UCS ON SYS.ResourceID = UCS.ResourceID INNER JOIN
                          v_UpdateInfo AS UI ON UCS.CI_ID
    = UI.CI_ID
    WHERE     (UCS.Status IN ('2', '3')) AND (SYS.Name0 IN (SELECT DISTINCT v_FullCollectionMembership.Name
    FROM v_FullCollectionMembership INNER JOIN
         v_R_System ON v_R_System.ResourceID = v_FullCollectionMembership.ResourceID AND v_R_System.Active0 = 1 AND
                                                       v_FullCollectionMembership.CollectionID
    IN ('XXX00000')))
    Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights

  • SCCM report query that displays count of cpus per host and if host is physical or virtual

    Hello,
    I have this query that displays the count of CPUs per host.  How can I add a column to show if the host a physical or virtual?
    SELECT
    DISTINCT(CPU.SystemName0) AS [System Name],
    CPU.Manufacturer0 AS Manufacturer,
    CPU.Name0 AS Name,
    COUNT(CPU.ResourceID) AS [Number of CPUs],
    CPU.NumberOfCores0 AS [Number of Cores per CPU],
    CPU.NumberOfLogicalProcessors0 AS [Logical CPU Count]
    FROM [dbo].[v_GS_PROCESSOR] CPU
    GROUP BY
    CPU.SystemName0,
    CPU.Manufacturer0,
    CPU.Name0,
    CPU.NumberOfCores0,
    CPU.NumberOfLogicalProcessors0

    I see that you have posted this exact question in another forum for CM12, however this is an CM07 forum.  
    Are you CM07 or CM12?
    If you are CM12, use my answer here.
    http://www.systemcentercentral.com/forums-archive/topic/sccm-report-query-for-cpu-cores/
    If you are CM07, this is NOT a simple how exactly do you detect that a computer is a VM? You can guess by looking at the manufacturer name but it is only a guess.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Remove Delete Query Report

    Our customer created a query.  The customer then created a report using the "Create Report" function under the Query Manager function in SAP B1.  Now they want to delete the query and also delete the report from the list.
    How is a report removed from that list???
    Thanks ahead of time for your information...
    Zal

    Tools->Queries->Query Print Layout, double click on raport to delete. After opened editor, choose Print Layout Designer->Delete Layout, thats all

  • Sccm reporting for add/remove programs is not accurate

    Hi freinds
    I have made a custome query to find computers where antivirus is not installed in entire site. It was working fine. But last week I have observed that one windows server 2008 r2 has got symantec enpoint protection installed but sccm report is including
    that server.
    could anyone please share ideas to solve it?
    here is the sccm query:
    select v_r_system.netbios_name0,v_r_system.user_name0,v_GS_OPERATING_SYSTEM.Caption0 AS "Operating System",v_GS_SYSTEM_ENCLOSURE.SerialNumber0 AS "Serial Number" from v_r_system
     join v_GS_OPERATING_SYSTEM on v_GS_OPERATING_SYSTEM.ResourceID = v_r_system.ResourceId
     JOIN v_GS_system on v_GS_system.ResourceID = v_r_system.ResourceId
    JOIN v_GS_system_Enclosure on v_GS_system_Enclosure.ResourceID = v_r_system.ResourceId
    where v_GS_system.Name0 not in
    select distinct v_GS_system.Name0 from  v_GS_system
    LEFT OUTER JOIN v_GS_ADD_REMOVE_PROGRAMS on v_GS_ADD_REMOVE_PROGRAMS.ResourceID = v_r_system.ResourceId
    LEFT OUTER join v_GS_ADD_REMOVE_PROGRAMS_64 on v_GS_ADD_REMOVE_PROGRAMS_64.ResourceID = v_r_system.ResourceId
     where
    v_GS_ADD_REMOVE_PROGRAMS.DisplayName0  = 'Symantec AntiVirus'
    or v_GS_ADD_REMOVE_PROGRAMS.DisplayName0  = 'Symantec AntiVirus Client' or 
    v_GS_ADD_REMOVE_PROGRAMS.DisplayName0  = 'Norton Antivirus Client' or
    v_GS_ADD_REMOVE_PROGRAMS.DisplayName0  = 'Norton AntiVirus Corporate Edition'  or
    v_GS_ADD_REMOVE_PROGRAMS.DisplayName0  = 'Symantec Endpoint Protection'  or
    v_GS_ADD_REMOVE_PROGRAMS_64.DisplayName0  = 'Symantec AntiVirus Win64' or v_GS_ADD_REMOVE_PROGRAMS_64.DisplayName0  = 'Symantec Endpoint Protection' or
    v_GS_SYstem.SMSID0 = 'GUID:6578610F-BFD0-4693-98B5-B6FB50129FB5' or
    v_GS_SYstem.SMSID0 = 'GUID:E64FF1A8-EF5B-46DD-8859-02D7A3E8818A' or
    v_GS_SYstem.SMSID0 = 'GUID:52EA60BD-F3DD-4615-9CCD-AFE0B7F28D41' )

    It sounds like you have some 3rd. party Console tools installed (right click tools). Those are using various scripts to connect to the clients and is not really controlled via ConfigMgr.
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

  • BEx Variable in Webi Report questions

    Hi Gurus,
    Here is my issue.
    I created a BEx Query 0SD_C03 Cube with following fields
    Two Columns
    One Key Figure:                   Subtotal1
    One Restricted Key Figure:  Subtotal with restriction " Sales Organization 1000"
    Two Rows                             Plant, Sales Organization
    One Variable with Sales Organization.
    When I ran this query in BEx Analyzer I can see all Sales Organization values in prompt list, How ever when I created a Universe and ran a webi query I can see 1000 in the Sales Organization list.
    Is this because I have restricted Key Figure with Sales Organization 1000 in the query?
    I removed my Restricted Key Figure from my query and tried again this time I see some 10 Sales Oraganizations but I didn't see all available Sales Organizations. Does BO Universe LOVs restricte the list?
    Thanks
    Sasi

    Identical entry so this is being closed:
    duplicate:
    BEx Variable in Webi Report questions
    Ingo

  • Removing duplicates finally fixed!

    Why doesn't apple incorporate the ability to remove duplicates automatically. There is no way I am going to hand select over 300 songs to remove the duplicates. Make a feature (a code based query) that will remove any duplicates, minus 1.

    I'm sure that's possible (and there are scripted solutions that will do exactly what you want).  The bigger issue, though, is what do you mean by a "duplicate"?  iTunes currently has two functions:
    View > Show Duplicate Items will show all cases where a song exists in your library with the same Artist and Name fields - therefore you may get different edits, mixes, live vs. studio versions, of the same song.  I understand that some people may want to eliminate at least some of these, but how would a fully-automated version know which songs you want to keep and which to get rid of in this example?
    In extreme cases, you could have many songs that would be shown in the results of the View > Show Duplicate Items query yet this would represent an absolutely correct library with nothing that the user (me, in this case) would regard as a "duplicate":
    The highlight tracks here show a case where the same "song" (Artist and Name matched) can occur within the same album - quite correctly.
    SHIFT View > Show Exact Duplicate Items is much more restrictive, in that as well as Artist and Name it will only show songs that also have identical values for Album, Disc Number and Track Number.  Unlike the first case, where duplicates may be entirely value, anything shown by this second function is likely to be an error. This is an area in which iTunes could maybe offer an automated function, though there are still questions that would need to be resolved.  For example, such a duplicate may be reported if:
    There are two entries in the iTunes database that point to the same media file
    There are two entries in the iTunes database that point to different media files - still the same song/recording but they could have different filenames or be in different locations
    The biggest barrier to an automated de-duplication function within iTunes, though, is that unless it offered a host of user options there's a very significant risk that it would delete duplicates but not the ones that you want to remove - and where the de-duplication process also involves file deletion this is not easy to support a robust Undo function for.  The other factor is that the second case of duplication (exactly the same song occurring more than once in your library) is almost always the result of some kind of user error, or user misunderstanding of how iTunes works and manages the content of its library.  iTunes is complex enough (far too complex, in some people's opinion) without adding functionality that addresses the consequence of misuse.

  • Best way to remove duplicates based on multiple tables

    Hi,
    I have a mechanism which loads flat files into multiple tables (can be up to 6 different tables) using external tables.
    Whenever a new file arrives, I need to insert duplicate rows to a side table, but the duplicate rows are to be searched in all 6 tables according to a given set of columns which exist in all of them.
    In the SQL Server Version of the same mechanism (which i'm migrating to Oracle) it uses an additional "UNIQUE" table with only 2 columns(Checksum1, Checksum2) which hold the checksum values of 2 different sets of columns per inserted record. when a new file arrives it computes these 2 checksums for every record and look it up in the unique table to avoid searching all the different tables.
    We know that working with checksums is not bulletproof but with those sets of fields it seems to work.
    My questions are:
    should I use the same checksums mechanism? if so, should I use the owa_opt_lock.checksum function to calculate the checksums?
    Or should I look for duplicates in all tables one after the other (indexing some of the columns we check for duplicates with)?
    Note:
    These tables are partitioned with day partitions and can be very large.
    Any advice would be welcome.
    Thanks.

    >
    I need to keep duplicate rows in a side table and not load them into table1...table6
    >
    Does that mean that you don't want ANY row if it has a duplicate on your 6 columns?
    Let's say I have six records that have identical values for your 6 columns. One record meets the condition for table1, one for table2 and so on.
    Do you want to keep one of these records and put the other 5 in the side table? If so, which one should be kept?
    Or do you want all 6 records put in the side table?
    You could delete the duplicates from the temp table as the first step. Or better
    1. add a new column WHICH_TABLE NUMBER to the temp table
    2. update the new column to -1 for records that are dups.
    3. update the new column (might be done with one query) to set the table number based on the conditions for each table
    4. INSERT INTO TABLE1 SELECT * FROM TEMP_TABLE WHERE WHICH_TABLE = 1
    INSERT INTO TABLE6 SELECT * FROM TEMP_TABLE WHERE WHICH_TABLE = 6
    When you are done the WHICH_TABLE will be flagged with
    1. NULL if a record was not a DUP but was not inserted into any of your tables - possible error record to examine
    2. -1 if a record was a DUP
    3. 1 - if the record went to table 1 (2 for table 2 and so on)
    This 'flag and then select' approach is more performant than deleting records after each select. Especially if the flagging can be done in one pass (full table scan).
    See this other thread (or many, many others on the net) from today for how to find and remove duplicates
    Best way of removing duplicates

  • What is the best app for identifying and removing duplicates from iPhoto Libraries/Pictures?

    I have five iPhoto Libraries (original, default merged, etc.)  I've tried using iPhoto Library Manager, but I seem to be digging a deeper hole.  Also, question about the 15,000 faces:  Are these taking up space on my hard drive?  I gather I cannot easily remove them from libraries.  Taking photos at concerts, sporting events, etc. just creates more faces in iPhoto;  frankly, I could do without ANY FACE DETECTION!

    These applications will identify and help remove duplicate photos from an iPhoto Library:
    iPhoto Library Manager - $29.95
    Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when an iPhoto 8 or earlier library has been imported into another.
    PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
    DeCloner - $19.95 - can find duplicates in iPhoto Libraries or in folders on the HD.
    DupliFinder - $7 - shows which events the photos are in.
    iPhoto AppleScript to Remove Duplicates - Free
    PhotoDedupo - $4.99 (App Store) -  this app has a "similar" search feature which is like PhotoSweeper's bitmap comparison.  It found all duplicates
    Duplicate Cleaner for iPhoto - free - was able to recognize the duplicated HDR and normal files from an iPhone shooting in HDR
    Some users have reported that PhotoSweeper did the best in finding all of the dups in their library: iphoto has duplicated many photos, how...: Apple Support Communities.
    If you have an iPhone and have it set to keep the normal photo when shooting HDR photos the two image files that are created will be duplicates in a manner of speaking (same image) but there are only twp apps that detected the iPhone HDR and normal photos as being duplicates:  PhotoSweeper and Duplicate Cleaner for iPhoto.  None of the other apps detected those two files as being duplicates as they look for file name as well as other attributes and the two files from the iPhone have different file names.
    iPLM, however, is the best all around iPhoto utility as it can do so much more than just find duplicates.  IMO it's a must have tool if using iPhoto.

  • How do I remove duplicate software from listings

    How do I remove duplicate software entries from Reports run. Ironically, the Novell iFolder client is listed three times on reports because it detects every folder of the packge.
    How do I fix/ignore these duplicate values?
    See attachment - a PC software listing

    Originally Posted by pcwoodring
    How do I remove duplicate software entries from Reports run. Ironically, the Novell iFolder client is listed three times on reports because it detects every folder of the packge.
    How do I fix/ignore these duplicate values?
    See attachment - a PC software listing
    As usual I answer my own questions. I created a Local Software Product based on an .htm file in the Program Files folder that never changes with the version we have. Lame.

  • SCCM Reporting: Software Updates / Apllication the "Installed date" is missing or null in reports

    When the “V_GS_Add_Remove_Programs” or “V_GS_Quick_Fix_Engineering” queried for installed date (the views that contains information  on updates/application
    installed date),  the “installDate0” Column returns “Null” or is
    "blank" on most of the rows.
    The machine in this example is “X”
    2. As you can see from the machines X's add remove Programs installed Date is given clearly.
    Appreciate your help on this as its for an audit report of windows updates and applications installed date, I know that some applications do not populate this value but my argument is if its visible from Programs and Features why isn't the data being collected.
    Best Regards,
    Michael

    Duplicated post.
    http://social.technet.microsoft.com/Forums/en-US/678489ad-3289-4fd6-8e84-bbaf487abacf/sccm-reporting-software-updates-apllication-the-installed-date-is-missing-or-null-in-reports?forum=configmanagergeneral
    http://www.enhansoft.com/

  • SCCM report not rendering using v_Add_Remove_Programs vs. v_GS_ADD_REMOVE_PROGRAMS

    Hi all-
    I created a report to provide some installed software info using add remove programs and discovered when using the view, v_GS_ADD_REMOVE_PROGRAMS, the query ran fine in both SSMS and in reporting console.  The problem I found is that
    I was missing some records when I spot checked, like my Exchange server records listed most of the installed software but not Exchange server.  So then I substituted v_Add_Remove_Programs and the query ran fine and I was seeing instances
    of Exchange Server, SQL Server, etc., that I was missing before.  But then when I attempt to run the report in the reporting console I get a 500 internal server error.  I noted case differences for the view name but that didn't make any difference. 
    As soon as I change the name back to the GS view it displays fine.
    What's the difference between these two views and why would it run fine in SQL management studio but throw an error from SCCM?

    Here's the query.  It works fine as is below from SSMS. It does not work when going through the reporting browser.  But join v_GS_Add_Remove_Programs instead of v_Add_Remove_Programs and it works from both SSMS and browser.  I replicated the
    behavior in a test lab.
    SELECT DISTINCT sys.netbios_name0 AS 'Name'
    ,cs.Domain0 AS 'Domain'
    ,bio.SerialNumber0 AS 'Serial Number'
    ,os.Caption0 AS 'Operating System'
    ,cs.Model0 AS 'Model'
    ,adr.DisplayName0 AS 'Software Name'
    ,adr.Version0 AS 'Version'
    FROM v_R_System sys
    JOIN v_GS_PC_BIOS bio ON sys.ResourceID = bio.ResourceID
    JOIN v_GS_OPERATING_SYSTEM os ON sys.ResourceID = os.ResourceID
    JOIN v_AgentDiscoveries ad ON sys.ResourceID = ad.ResourceId
    JOIN v_GS_COMPUTER_SYSTEM cs ON sys.ResourceID = cs.ResourceID
    JOIN v_Add_Remove_Programs adr ON sys.ResourceID = adr.ResourceID
    JOIN v_GS_NETWORK_ADAPTER_CONFIGUR net ON sys.ResourceID = net.ResourceID
    WHERE (os.Caption0 LIKE '%Server%')
    AND (ad.AgentName = 'Heartbeat Discovery')
    AND (NOT (net.IPAddress0 = 'null'))
    AND net.IPAddress0 NOT LIKE '0.0.0.0'
    AND (Adr.DisplayName0 NOT LIKE 'security update%')
    AND (Adr.DisplayName0 NOT LIKE 'software update%')
    AND (adr.DisplayName0 NOT LIKE '%hotfix%')
    AND (adr.DisplayName0 NOT LIKE '%for Windows Server%')
    GROUP BY sys.Netbios_Name0
    ,bio.SerialNumber0
    ,os.Caption0
    ,os.Version0
    ,cs.Model0
    ,adr.DisplayName0
    ,adr.Version0
    ,cs.Domain0
    ORDER BY 'Software Name'

  • Report region with sql query

    Hi
    I have a report region with sql query. There are two regions in page. On top of page, user enters data and after that second region show enterd data which is report region
    based on sql query.
    Now,when this page is opned, as user had not entered any thing, report region shows "no data found" message. Is it possible to remove that message or
    may i conditionally disaply report region i.e if data is inserted then only report region is dispalyed.
    Thanks

    >
    i was trying with select count(1) in expression.
    >
    Just for your info, COUNT() (without any grouping obviously) with always return 1 row. If there are no result for the query then 1 row will be returned with a value of zero - so there are results returned.
    Secondly, why were you using COUNT(1) rather than COUNT(*)? That is is faster is a very common misconception and not true. If you need to know how many rows have been returned, use COUNT(*). If you need to take nulls into account (ie. not include them in your count) then use COUNT(column_name) and name the column that you are interested in specifically.
    Cheers
    Ben

Maybe you are looking for

  • How to find out the SET PARAMETER ID for FB02 transaction

    hi masters, i m working on a alv report and in that i have to make a BELNR field as a interactive field. i m using the 'user command' for this. FORM user_command USING ucomm TYPE sy-ucomm                     selfield TYPE slis_selfield.   IF selfield

  • How to connect win 2003 server with Mac OS 10.4.6

    i try all the things i but it can't be done I follows these Steps:- Directory Access click on Active Directory then Configure then Active Directory Domain & Computer ID then Bind

  • Is there a difference in Premier and After Effects Performance in terms of intel or AMD?

    Is there a difference in Premier and After Effects Performance in terms of intel or AMD?  Forget the speed issue, assume that the processors are of comparable speed and also assume that the system is built beyond recommended requirements.  When it co

  • Burning problems in iTunes

    Hi, i upgrade my iMac to Mac OS X Lion and obviously iTunes too, but the problem is that i just can't burn CD's in iTunes.... So somebody may help in this. Thanks

  • Adding Photos to Mac Screen saver files

    Hi, I'd like to add some additional photos to the "Cosmos" screen saver file that came with my MacBook Pro but I can't find this file through Finder in order to add my photos. Has anyone any idea if it's possible, and if so, how ? Thanks.