SCCM Query/Report to List Computers Without Software


The report below shows the computers WITHOUT McAfee VirusScan Enterprise software and version 8.8.02004 in the Add and Remove Program. The report has three column: NetBIOS Name, User Domain and User Name. I would like to add a fourth column that shows the
current McAfee VirusScan Enterprise Software and version in the Add and Remove Program for the same list of computers. Thanks!
Select Distinct
sys.Netbios_Name0,
sys.User_Domain0,
sys.User_Name0
FROM
v_R_System sys
JOIN v_Add_Remove_Programs arp ON sys.ResourceID = arp.ResourceID
WHERE
sys.ResourceID not in (select sys.ResourceID
from
v_R_System sys
JOIN v_Add_Remove_Programs arp ON sys.ResourceID = arp.ResourceID
where
DisplayName0 like 'McAfee VirusScan Enterprise' and Version0 like '8.8.02004')
order by sys.Netbios_Name0

Like this?
select
v_R_System
.name0,
Publisher0
,DisplayName0,
Version0
from v_R_System
JOIN
v_GS_ADD_REMOVE_PROGRAMS ON v_R_System.ResourceID
= v_GS_ADD_REMOVE_PROGRAMS.ResourceID
where
DisplayName0 like
'%Acrobat%'
and
v_R_System
.ResourceID
not
in(select
v_R_System.ResourceID
from
v_R_System
JOIN v_GS_ADD_REMOVE_PROGRAMS arp
ON v_R_System.ResourceID
= arp.ResourceID
where
DisplayName0
like
'%Acrobat%'
and Version0
=
'9.5.5')
order
by v_R_System.Name0
John Marcum | Microsoft MVP - Enterprise Client Management
My blog: System Center Admin | Twitter:
@SCCM_Marcum | Linkedin:
John Marcum

Similar Messages

  • SCCM query for Windows 8 machines without software installed

    Would anyone be able to point me in the direction of an SCCM query for a collection that would list all Windows 8 machines without certain software installed?
    Thanks

    I have this query to for systems without software installed:
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,
    SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.
    ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System  
    inner join SMS_G_System_COMPUTER_SYSTEM on  
    SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId 
    where SMS_G_System_COMPUTER_SYSTEM.Name not in  
    (select SMS_G_System_COMPUTER_SYSTEM.Name from  SMS_R_System  
    inner join SMS_G_System_COMPUTER_SYSTEM on  
    SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId
    inner join SMS_G_System_ADD_REMOVE_PROGRAMS on  
    SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID =  
    SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS. 
    DisplayName like "%SOFTWARE%")
    The query works, but I would like to modify it so the query only includes certain versions of Windows. Any suggestions would be appreciated
    Thanks 

  • Query/Report to list collections in a Folder

    does anyone have a query / report that lists the collections contained in a folder? I've found powershell scripts for this but they're not translating over with the same logic as a query.
    Thanks.
    Jason

    does anyone have a query / report that lists the collections contained in a folder? I've found powershell scripts for this but they're not translating over with the same logic as a query.
    The logic should be fairly close. What does the PowerShell script look like?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • SCCM 2012 Query report for specific software installed.

    I have Reporting point installed and it seems to be working as I was able to run OS reports.
    Here's what I would like to do.
    1. I need a query/report to show us all the machines that do not have Microsoft Forefront Endpoint Protection installed.
    2. I also need a query/report showing what machines still have Sophos AV installed.
    Any help is greatly appreciated it.
    Thanks,
    Voev

    I was not able to use the Reporting to get computers without FEP installed. So I did a workaround.
    Create Device Collection for computers with FEP installed
    1. Device Collections => Create Device Collection =>name it "Computers with FEP installed=> Query Rule Properties => Edit Query Statement => Criteria tab => Add the following statements
    Criterion Type: Simple value
    Where: Installed Software - ARPDisplay Name
    Operator: is equal to
    Value: System Center 2012 Endpoint Protection          (as appeared in Add/remove program name)
    Create Device Collection for computers without FEP installed
    1. Device Collections => Create Device Collection => Name "Computers without FEP Installed" => Query Rule Properties => Add Rule => Include Collections => Tick "All Systems" => OK =>  then you need to add
    the Exclude by => Add Rule => Exclude Collections => Tick " Computers with FEP Installed => OK
    So in my "All Systems" Collection has 1000 members
    Computers with FEP Installed collection has 900 members
    Computers without FEP Installed collection has 100 members
    Add the with FEP installed & without FEP installed collections together is equal to 1000 members of the All Systems.

  • How to show a filter of the values in SCCM 2012 report?

    I didn't see a forum for SCCM 2012 reporting, only SCCM 2007 Reporting, so I hope I am posting in the correct forum for this.
    We upgraded to SCCM 2012 R2 and when running a report and entering values we can no longer type in a filter and then see a filtered list of values like in SCCM 2007.
    Is there a solution for this?  This was very useful especially in the Add/Remove report because many times we don't know exactly what to enter. 
    Below is a snapshot of what we did in SCCM 2007.

    Garth, unfortunately, I don't.   I was fair at SCCM 2007 reporting and modifying SQL statements, but it seems everything has changed with SCCM 2012 reporting.  For the specific SCCM 2012 report I mentioned,  "Computers with specific software
    registered in Add Remove Programs", is there some code I could paste in somewhere to get it to operate like the SCCM 2007 report?
    Are you using BIDS or Report Builder. (Keep in mind that I recommend BIDS over RP)
    Here are the basic steps:
    Review the SQL for the Prompt
    Add a variable to the prompt
    Import; refresh the SQL query within the dataset
    Move that the new variable is BEFORE the existing variable
    Enter in the Prompt text “Enter computer filer”
    Test to make sure everything is nice
    Upload the report.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • SCCM 2012 R2-CU3 Collection Query not a report to generate Computers no longer logon to Active Directory for more than 90 Days.

    Dear Brothers,
    I want to use SCCM to have a
    Query Collection to generate computers no longer active by detecting more than 90 days of no logon to our AD (Dead or not Pinging but still in AD), after this activity I will delete this computers
    to completely clean both AD and SCCM records as Well.
    Why instead of Reports I prefer collection is because, I want it to be more Dynamic and once you open the console the computers will be displayed immediately.
    Regards,

    It is not possible for a collection to be more dynamic than a report. If anything the collection will be behind what is listed in a report.
    How exact do you think that you determine that a PC is not ping able via a collection? This might be possible via a report but it will be a very, very complex report to do this.
    As for logon details this is NOT collect by CM12 by default and it is could be update 15-22 days out of sync with reality.
    If I remember right there are a few scripts that will do this for you available via the favorite search engine.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ
    Thanks Garth,

  • Query to list computers with a specific network printer using sccm 2007

    Hi to all,
    I really need help to  create a report taht lists  all the computers which have a network printer "MAXXX" installed.I would like to do it using sccm 2007.
    Thank you in advance for your help.
    Regards,
    Stephane.

    CM07 does not collect this information, Printers are a user setting and therefore you will need to create a script to inventory the printer for each user then you can have CM07 collect & report on them.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • SCCM 2012R2 Report or Query to show recently installed software

    Hi All,
    It appears necessary to run a report or query to show recently installed applications that have not been deployed by SCCM.
    the report will need to show the pc name  the software that has been installed and the user account that the software has been installed by.
    Any ideas on how to do this ? 
    cheers 

    For SCCM software review Reports, you can check below link
    http://myitforum.com/cs2/blogs/jfunk/archive/2008/12/18/sms-reports-software-install-review.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"Mai Ali | My blog:
    Technical | Twitter:
    Mai Ali

  • SCCM 2012 SP1 How to Report All Computers Last Software Inventory Date

    Hi! We´d like to confirm our sofware inventory is updated.
    How can I report all computers last software inventory date?
    Fabio Martins MCDST/MCSA Brasil!!!

    This will give you a collection of all systems with a defined LastScanDate.
    Excluding this collection will give you the ones without a LastScanDate
    select
      SMS_R_SYSTEM.ResourceID,
      SMS_R_SYSTEM.ResourceType,
      SMS_R_SYSTEM.Name,
      SMS_R_SYSTEM.SMSUniqueIdentifier,
      SMS_R_SYSTEM.ResourceDomainORWorkgroup,
      SMS_R_SYSTEM.Client
    from
      sms_r_system AS sms_r_system  
    inner join
      SMS_G_System_LastSoftwareScan as c on c.resourceid=sms_r_system.resourceid  
    where
      datepart(yy,c.lastscandate) >= 1997
    AND
      datepart(mm,c.lastscandate) >= 01 
    AND 
      datepart(dd,c.lastscandate) >= 01

  • SCCM collection report for software NOT on a workstation

    One of the default reports in SCCM generates a report on the number of software titles in a collection using 2 prompts(Collections, Software Title)
    SELECT DisplayName0, Count(ProdID0) AS 'Green', Publisher0, Version0, @CollID as CollectionID
    FROM v_Add_Remove_Programs arp
    JOIN v_FullCollectionMembership fcm on arp.ResourceID=fcm.ResourceID
    WHERE ((Publisher0 = @softwarename) OR (DisplayName0 = @softwarename) )
    and fcm.CollectionID=@CollID
    GROUP BY DisplayName0, Publisher0, Version0 
    ORDER BY Publisher0, Version0
    The following lists all collections with the total membership.
    SELECT @CollID.Name, v_Collection.Comment,v_Collection.CollectionID, COUNT(*) as [Members] FROM v_Collection,v_FullCollectionMembership
    where v_Collection.CollectionID=v_FullCollectionMembership.CollectionID 
    group by v_Collection.Name ,v_Collection.Comment,v_Collection.CollectionID 
    order by v_Collection.Name
    How can we get the total membership from the collection prompt in the top statemenent and subtract the "Count(ProdID0)" to get the number of computers without the software title?

    i dont understand your question completely.why do you want to subtract the count(prodID) from total membership of collection ? you know that ,count(prodID) and count membership(collection) are two complete different things and they are not related at all.
    can you please be more specific ,what you are trying to achieve ? 
    Eswar Koneti | Configmgr blog:
    www.eskonr.com | Linkedin: Eswar Koneti
    | Twitter: Eskonr

  • SCCM 2012 Report for Software registered in Add/Remove programs

    Hi
    Am looking to create an SCCM 2012 Report for Software registered in Add/Remove programs on windows 7 machines but dont have enough experience with report builder to do this.
    Was hoping someone could help.

    When i use the url i still only see the following categories
    Administrative Security
    Asset Intelligence
    Client Push
    Client Status
    Compliance and Settings ManagementHave looked through them all and that one is not there
    the only software ones are the following
    Report Software 01A - Summary of installed software in a specific collectionThis report provides a summary of installed software ordered by the number of instances found from inventory.
     Open Menu
    Report Software 02A - Product families for a specific collectionThis report lists the product families and the count of software in the family for a specific collection.
     Open Menu
    Report Software 02B - Product categories for a specific product familyThis report lists the product categories in a specific product family and the count of software within the category. This report is linked to Software 02C - Software in a specific product
    family and category.
     Open Menu
    Report Software 02C - Software in a specific product family and categoryThis report lists all software that is in the specified product family and category. This report is linked to Software 06B - Software by product name.
     Open Menu
    Report Software 02D - Computers with specific software installedThis report lists all computers with specific software installed. This report is linked to Software 02E - Installed software on a specific computer .
     Open Menu
    Report Software 02E - Installed software on a specific computerThis report lists all software installed on a specific computer.
     Open Menu
    Report Software 03A - Uncategorized softwareThis report lists the software that is either categorized as unknown or has no categorization.
     Open Menu
    Report Software 04A - Software configured to automatically run on computersDisplays a list of software configured to automatically run on computers.
     Open Menu
    Report Software 04B - Computers with specific software configured to automatically runDisplays all computers with specific software configured to automatically run.
     Open Menu
    Report Software 04C - Software configured to automatically run on a specific computerDisplays installed software configured to automatically run on a specific computer.
     Open Menu
    Report Software 05A - Browser Helper ObjectsThis report displays the Browser Helper Objects installed on computers in a specific collection.
     Open Menu
    Report Software 05B - Computers with a specific Browser Helper ObjectDisplays all of the computers with a specific Browser Helper Object.
     Open Menu
    Report Software 05C - Browser Helper Objects on a specific computerDisplays all Browser Helper Objects on the specific computer.
     Open Menu
    Report Software 06A - Search for installed softwareThis report provides a summary of installed software ordered by the number of instances based on search criteria for the product name, publisher, or version.
     Open Menu
    Report Software 06B - Software by product nameThis report provides a summary of installed software ordered by the number of instances based on selected Product Name.
     Open Menu
    Report Software 07A - Recently used executable programs by the count of computersThis report displays executable programs that have been used recently with a count of computers on which they have been used. The Software Metering client must be enabled for this
    site to view this report.
     Open Menu
    Report Software 07B - Computers that recently used a specified executable programThis report displays the computers on which a specified executable program has recently been used when you enable the software metering client setting.
     Open Menu
    Report Software 07C - Recently used executable programs on a specified computerThis report displays executables that have been used recently on a specified computer when you enable the software metering client setting.
     Open Menu
    Report Software 08A - Recently used executable programs by the count of usersThis report displays executable programs that have been used recently with a count of users that have most recently used them when you enable the software metering client setting.
     Open Menu
    Report Software 08B - Users that recently used a specified executable programThis report displays the users that have most recently used a specified executable program when you enable the software metering client setting.
     Open Menu
    Report Software 08C - Recently used executable programs by a specified userThis report displays executable programs that have been used recently by a specified user when you enable the software metering client setting.
     Open Menu
    Report Software 09A - Infrequently used softwareThis report displays software titles that have not been used during a specified period of time. You can specify a value that will represent the number of days that have elapsed since the last use (e.g. if you
    enter 90 days, you will see software that was not used in the past 90 days or more). You can also leave the Days not used field empty to see all software titles that were never used.
     Open Menu
    Report Software 09B - Computers with infrequently used software installedThis report displays computers which have software installed that has not been used for a specified period of time. The specified period of time is based on the value specified in the
    'Software 09A - Infrequently used software' report.
     Open Menu
    Report Software 10A - Software titles with specific multiple custom labels definedThis report allows you to view software titles based on matching of all selected custom label criteria. Up to three custom labels can be selected to refine a software title search.
     Open Menu
    Report Software 10B - Computers with a specific custom-labeled software title installedThis report shows all computers in this collection, that have the specified custom-labeled software title installed.
     Open Menu
    Report Software 11A - Software titles with a specific custom label definedThis report allows you to view software titles based on matching of at least one of the selected custom label criteria.
     Open Menu
    Report Software 12A - Software titles without a custom labelThis report displays all software titles that do not have a custom label defined.
     Open Menu
    Report Software 14A - Search for software identification tag enabled softwareThis report provides the count of installed software with a software identification tag enabled.
     Open Menu
    Report Software 14B - Computers with specific software identification tag enabled software installedThis report lists all computers that have installed software with a specific software identification tag enabled.
     Open Menu
    Report Software 14C - Installed software identification tag enabled software on a specific computerThis report lists all installed software with a specific software identification tag enabled on a specific computer.
     Open Menu

  • Create report to list all computers with chrome or mozilla browser al editions

    Hi All,
    I have SCCM 2007 R3 and I need to create report to list all computers with chrome or Mozilla browser all editions. any help?
    Thanks,
    Kareem Behery

    The above one is SMS collection query. For SQL report you may try the below query: 
    query for IE 10
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client
    from SMS_R_System inner join SMS_G_System_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID
    = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName
    = "iexplore.exe" and SMS_G_System_SoftwareFile.FilePath
    like "%prog%internet%" and SMS_G_System_SoftwareFile.FileVersion
    like "10.%"
    query for IE 9
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client
    from SMS_R_System inner join SMS_G_System_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID
    = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName
    = "iexplore.exe" and SMS_G_System_SoftwareFile.FilePath
    like "%prog%internet%" and SMS_G_System_SoftwareFile.FileVersion
    like "9.%"
    query for IE 10
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client
    from SMS_R_System inner join SMS_G_System_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID
    = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName
    = "iexplore.exe" and SMS_G_System_SoftwareFile.FilePath
    like "%prog%internet%" and SMS_G_System_SoftwareFile.FileVersion
    like "11.%"

  • SCCM Query to list machines that are not compliant to a specific Update List?

    Hello,
    I have been trying to create a Collection-based Query that collects all machines which are not compliant with a specific Update List. I have looked everywhere for some information about an Attribute that relates to Update List without any luck....
    Im thinking one of the Attributes under Software Updates class must be the answer. Since i can draw a report that shows AuthListID with a value of ScopeId_xXxxx/AuthList_xxxxx, there must be a related attribute somewhere to add in a collection-based
    query. Has anyone successfully done this? Any related information would be very much appreciated.

    Hi,
    By following SQL Query you can list out the systems as per their compliance state against particular assignment.
    1) get the assignement ID
    Select * from v_CIAssignment order by AssignmentID
    2) Put the assignment id into the the following query which you get in step1
    SELECT v_R_System.Name0, 
    REPLACE
    (REPLACE
     (REPLACE
      (REPLACE
       (REPLACE
        (REPLACE
         (REPLACE
          (REPLACE
           (REPLACE
            (REPLACE(v_AssignmentState_Combined.StateID,'0','enf state unknown')
            ,'1','Compliant')
            ,'2','Non compliant')
            ,'4','Succesfully installed updates')
            ,'5','Pending restart')
            ,'6','Failed to install updates')
            ,'7','Downloading updates')
            ,'8','Downloaded updates')
            ,'9','Failed to download updates')
            ,'10','Waiting for maintenance window before installing') as [State]
    from v_R_System,v_AssignmentState_Combined
    where v_R_System.ResourceID = v_AssignmentState_Combined.ResourceID and
    v_AssignmentState_Combined.AssignmentID = <AssignmentID>
    SourabhR

  • Report to list all computers and their collection membership

    Hi
    I am currently working on a site where direct membership is used for collections but a need has arisen to move to AD Queries.
    I have created a simple powershell script that creates groups based on the contents of a csv file and another script which populates this with the members listed in another csv file.
    To help speed up the process is there a way to generate a report that lists ALL Computers and their Collection membership?
    The only reports I seem to find that are built in require an inputted value of either computer name of collection ID. I simply need a report that lists Computer Name is column 1 and Collection Name in column 2 for all computers and all collections.
    Many Thanks,
    Matt Thorley

    select 
    FCM.Name,
    C.Name
    from 
    dbo.v_Collection C
    join dbo.v_FullCollectionMembership FCM on C.CollectionID = FCM.CollectionID
    Thanks to Garth for original query. I just modified it :)
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

  • SCCM 2012 R2 Cu1: Can I reinstall the Reporting Services Point role without delete or change the SSRS-DB?

    Hi, I have some issue with the reports,
    Can I reinstall the SCCM Reporting Services Point role without delete or change the SSRS-DB (just reset the SCCM SSRS function)?
    I have saved/backup the custom made reports.
    /SaiTech

    Yes you can remove and reinstall the Role.  I had to do this recently on our SCCM 2012 R2 due to an issue with the reports not loading.   Found out that the problem with reports was from the upgrade to R2 from 2012 SP1 and was able to run
    a command to re-register the reports with WMI.  I actually removed the role, uninstalled reporting services feature from SQL, deleted the report databases, reinstalled the SQL feature, configured the reporting databases again, added the role back, and
    ran the following command.
    mofcomp "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
    This allowed all my reports to register as they should have and run without errors.  If you are having similar problems, you may be able to just run that command to get reports running without all the extra work I did.  For us we were getting an
    invalid Class error in the srsrp.log.
    Brian

Maybe you are looking for