SCCM SQL report to get McAfee installed machine

I am trying the below SQL query to get McAfee installed machine but i am getting duplicate value,
SELECT DISTINCT Netbios_Name0 as [Computer Name] , AD_Site_Name0 as [AD SIte Name], User_Name0 as [User Name], Operating_System_Name_and0 as [Operating System], dbo.v_GS_OPERATING_SYSTEM.Caption0 as [Operating System], dbo.v_GS_WORKSTATION_STATUS.LastHWScan
as [Last Communication Time], dbo.v_GS_SoftwareFile.FileName
FROM         dbo.v_R_System INNER JOIN
                      dbo.v_GS_OPERATING_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_OPERATING_SYSTEM.ResourceID INNER JOIN
                      dbo.v_GS_WORKSTATION_STATUS ON dbo.v_R_System.ResourceID = dbo.v_GS_WORKSTATION_STATUS.ResourceID INNER JOIN
                      dbo.v_GS_SoftwareFile ON dbo.v_R_System.ResourceID = dbo.v_GS_SoftwareFile.ResourceID
                      where 
                      (dbo.v_GS_SoftwareFile.filename like 'frameworkservice.exe') or
                      dbo.v_GS_SoftwareFile.filename like  'mcshield.exe'
If i give one condition, i am getting the correct value but i include more then one condition getting duplicate value, Can anyone help me on this

No i am getting a machine name as duplicate.
If the both .exe available in machine, it gives me two entry of the machine.
Post a screenshot.  
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ

Similar Messages

  • Report to get how many machines a user id has used

    Hi
    Anyone could share to find machines logged on to from SCCM.
    Regards Sushain KApoor

    couple of reports available here on this type. http://eskonr.com/2011/03/sccm-report-to-list-all-computers-based-on-last-logged-on-user-name-from-collection/ and http://eskonr.com/2012/08/sccm-configmgr-report-find-computers-for-the-list-of-selected-users/
    create what is required for you.
    Eswar Koneti | Configmgr blog:
    www.eskonr.com | Linkedin: Eswar Koneti
    | Twitter: Eskonr

  • SCCM Collection query to get the Linux machines details

    Hi,
    Can I get the SCCM collection query to create list of Linux  machines . Please help me to get 

    Hi,
    Yes, you can.
    You use collections to manage groups of Linux and UNIX servers in the same way you use collections to manage other client types. Collections can be direct membership collections or query based collections that identify client operating systems, hardware
    configurations, or other details about the client that are stored in the site database. 
    For more information, please review the link below:
    How to Manage Linux and UNIX Clients in Configuration Manager
    http://technet.microsoft.com/en-us/library/jj573941.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SQL report to get average amount of time for helpdesk closures Pin

    Hi, I've been asked to write a report which lists the average time it takes for a helpdesk job to be closed. There isn't a closed date as such, the table column is simply an audit date/time which can be for various tasks.
    I need to use this column along with another which is an ID of the action. For example:
    User     TaskID   Task    AuditDatetime
    Bob        2    Opens job   1/8/2014 11:14:29
    Bob        5    Closes job  2/8/2014 10:12:26
    Joe        2    Opens job   2/8/2014 11:01:45
    Bob        5    Closes job  3/8/2014 11:44:22
    My SQL is very rusty, I'm sure the report is technically possible but I can't for the life of me figure out what the SQL is.
    I'm aware of the SQL AVG function and also know I may need to GROUP BY the user. I'm thinking some kind of CASE statement perhaps but again I can't think of the SQL to achieve this...
    Can anybody please help?

    DECLARE @helpDesk TABLE (JobID INT, userName varchar(10), TaskID INT, Task VARCHAR(20), AuditDatetime DATETIME)
    INSERT INTO @helpDesk (JobID, userName, TaskID, Task, AuditDatetime)
    VALUES
    (17, 'Bob', 2, 'Opens job', '8/1/2014 11:14:29'),
    (17, 'Bob', 5, 'Closes job', '8/2/2014 10:12:26'),
    (22, 'Joe', 2, 'Opens job', '8/2/2014 11:01:45'),
    (22, 'Bob', 5, 'Closes job', '8/3/2014 11:44:22'),
    (25, 'Bob', 1, 'Opens job', '8/4/2014 11:40:22'),
    (25, 'Joe', 3, 'Assigned job', '8/5/2014 11:47:22'),
    (25, 'Joe', 5, 'Closes job', '8/5/2014 11:49:22')
    SELECT *, DATEDIFF(minute,h2.AuditDatetime,h.AuditDatetime)/60.0 AS hours
    FROM @helpDesk h
    INNER JOIN @helpDesk h2
    ON h.jobID = h2.jobID
    AND h2.task = 'opens job '
    WHERE h.task = 'Closes Job'
    As far as open Jobs go, you could flip it around, like this:
    DECLARE @helpDesk TABLE (JobID INT, userName varchar(10), TaskID INT, Task VARCHAR(20), AuditDatetime DATETIME)
    INSERT INTO @helpDesk (JobID, userName, TaskID, Task, AuditDatetime)
    VALUES
    (17, 'Bob', 2, 'Opens job', '8/1/2014 11:14:29'),
    (17, 'Bob', 5, 'Closes job', '8/2/2014 10:12:26'),
    (22, 'Joe', 2, 'Opens job', '8/2/2014 11:01:45'),
    (22, 'Bob', 5, 'Closes job', '8/3/2014 11:44:22'),
    (25, 'Bob', 1, 'Opens job', '8/4/2014 11:40:22'),
    (25, 'Joe', 3, 'Assigned job', '8/5/2014 11:47:22'),
    (25, 'Joe', 5, 'Closes job', '8/5/2014 11:49:22'),
    (26, 'Joe', 5, 'Opens job', '8/5/2014 11:49:22')
    SELECT *, DATEDIFF(minute,h.AuditDatetime,COALESCE(h2.AuditDatetime,GETDATE()))/60.0 AS hours
    FROM @helpDesk h
    LEFT OUTER JOIN @helpDesk h2
    ON h.jobID = h2.jobID
    AND h2.task = 'Closes job '
    WHERE h.task = 'Opens Job'
    and coalesce the current date in for a close date.

  • Need a SCCM SQL Query Report for Installed Software with Packages and Applications.

    I need a report that will show the number of installs of all of the workstations applications and packages over a given period of time. 
    This will let us know how effective our deployments are and how well the on-demand software is being adopted.
    Any help?

    Your Install Source might be an option as most SCCM deployments will install from C:\Windows\ccmcache\xx [where xx is a random folder name]. Most software vendors will put an install source in the registry, but not all do, so it won't be completely accurate.
    When software is installed manually, the install source path won't be C:\Windows\ccmcache\xx.
    Here is a SQL query I have for Install Source:
    SELECT v_GS_COMPUTER_SYSTEM.Name0 as 'Computer Name', v_GS_INSTALLED_SOFTWARE.ProductName0 as 'Software Title', v_GS_INSTALLED_SOFTWARE.InstallSource0 as 'Install Source', v_GS_INSTALLED_SOFTWARE.ProductVersion0 as 'Version', v_GS_INSTALLED_SOFTWARE.InstalledLocation0
    as 'Installed Location', v_GS_INSTALLED_SOFTWARE.InstallDate0 as 'Install Date'
    FROM v_GS_COMPUTER_SYSTEM INNER JOIN v_GS_INSTALLED_SOFTWARE ON v_GS_COMPUTER_SYSTEM.ResourceID = v_GS_INSTALLED_SOFTWARE.ResourceID
    WHERE v_GS_INSTALLED_SOFTWARE.ProductName0 like '%Office 365 Pro%'
    ORDER BY v_GS_COMPUTER_SYSTEM.Name0

  • SCCM 2012 R2 Reporting issue updating SQL Reporting permissions

    I am in the process of setting up SCCM 2012 R2.  I am having an issue with the SCCM reporting.  If I set the permissions in the SCCM console, the permissions do not propagate to the SQL reporting... I get this... This is from SRSRP.log...
    Updating data source {5C6358F2-4BB6-4a1b-A16E-8D96795D8602} at ConfigMgr_DIT $$<SMS_SRS_REPORTING_POINT><01-15-2015 12:00:55.384+300><thread=5432 (0x1538)>
    (!) Error retrieving folders - [A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The target principal name is incorrect.)]. $$<SMS_SRS_REPORTING_POINT><01-15-2015 12:00:55.438+300><thread=5432 (0x1538)>
    No folder configuration information found. $$<SMS_SRS_REPORTING_POINT><01-15-2015 12:00:55.441+300><thread=5432 (0x1538)>
    Does anyone know how to fix?
    I tried removing and re-installing the reporting point, changing the permissions in SQL Server... and a dozen other things.

    I am in the process of setting up SCCM 2012 R2.  I am having an issue with the SCCM reporting.  If I set the permissions in the SCCM console, the permissions do not propagate to the SQL reporting... I get this... This is from SRSRP.log...
    Updating data source {5C6358F2-4BB6-4a1b-A16E-8D96795D8602} at ConfigMgr_DIT  $$<SMS_SRS_REPORTING_POINT><01-15-2015 12:00:55.384+300><thread=5432 (0x1538)>
    (!) Error retrieving folders - [A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The target principal name is incorrect.)].  $$<SMS_SRS_REPORTING_POINT><01-15-2015 12:00:55.438+300><thread=5432 (0x1538)>
    No folder configuration information found.  $$<SMS_SRS_REPORTING_POINT><01-15-2015 12:00:55.441+300><thread=5432 (0x1538)>
    Does anyone know how to fix?
    I tried removing and re-installing the reporting point, changing the permissions in SQL Server... and a dozen other things.

  • Reloaded Machines Not Getting Client Installed

    We recently moved our FCS/MOM solution over to a new FEP/SCCM solution.  Everything was going great until we started reloading some workstations.  In the past with MOM a reloaded workstation (from scratch) would automatically have the MOM client
    as well as the FCS client reinstalled.
    However, in our new scenario, the reloaded workstations are not getting anything.  The SCCM server continues to believe the SCCM client and FEP client are still install on those workstations and continue to report a very old "last communicated"
    date.
    What do I need to setup to get SCCM to reinstall clients as needed?  So far manually deleting the machine from SCCM and having it rediscover is the only thing I can get to work.  However, there must be an automated route?
    I'd appreciate any help!

    Once again Jason, you are wrong.  MOM pushes out it's own agent.  As I already mentioned WSUS pushes out FCS.
    So lets go down the list of your concerns, shall we?
    proper permissions - As I already mentioned, had you bothered to read, it comes preconfigured.
    configuration - As I already mentioned, had you bothered to read, it comes preconfigured.
    firewall exclusions - Part of the setup is handling your own firewall as is true with 99% of all software solutions.  Not sure what your point is here.
    DNS resolution - You'll have to explain yourself here.  DNS is typically already up and running in an active AD environment.
    I'm not really sure what the hell your problem is anyway.  1. SCCM can autoinstall the client on any machine you want through discovery.  2. SCCM can inventory software/services on any machine you want.  3. If SCCM had the capability to auto-inventory,
    see the service isn't running and then autoinstall (which you have it doing anyway)....that would be just one of many solutions.  So you're little security freakout is way out of line.
    I'm not sure if you just enjoy trolling but your attitude isn't appreciated and I would greatly appreciate it if you would just stop.  Do everyone a favor and at least install FCS ONCE before you continue commenting on it.  I really don't need
    someone who is completely ignorant on the topic explaining to me how it works.  I've been running it since day 1 and beta tested it prior to that.
    EDIT:
    Also, I've already through your little link a long time ago.  So you're comment about me not reading it is not only out of line, it's down right childish.  Nothing in that link discusses SCCM RE-pushing out the client.  If I wanted to roll
    out the client via GP or script then I wouldn't need discovery in SCCM to being with.
    Also, you're second link doesn't even work.
    You need to stop.

  • 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.

  • Installed SQL Reporting Services 2012 on SharePoint 2013 Server. SQL Reporting Service not available In the list of runnning services or new service applications

    Hi I'm trying to setup SQL reporting services in a SharePoint 2013 farm consisting of:
    4 WFE's
    4 App Servers (NLB Central Admin x 4 servers)
    4 App Severs for SSRS (Light limited SharePoint services running)
    I've installed SSRS 2012 SP1 by following the guide (http://msdn.microsoft.com/en-us/library/gg492276.aspx) on one of the SSRS SharePoint 2013 servers and ensuring Reporting Services - SharePoint and Reporting Services Add-in for SharePoint Products is selected.
    All completed without errors and I have even upgraded to SP2 for troubleshooting but no joy.
    I've then gone into SharePoint Central Admin and I cannot see SQL Reporting Service available In the list of runnning services on the server I have just installed SSRS on and going to manage service applications I cannot see in the new dropdown menu SQL
    Reporting Services.
    I have ran the following commands in the SHarePoint management shell:
    Install-SPRSService and Install-SPRSSeviceProxy
    and
    get-spserviceinstance -all |where {$_.TypeName -like "SQL Server Reporting*"} | Start-SPServiceInstance
    The reply was that the service was already online on the server.
    So in powershell all seems ok but it does not appear in central administration.
    I have also moved Central Administration to the SSRS SharePoint server too.
    Any other suggestions? Here is the same problem but in SP2010 (http://social.technet.microsoft.com/Forums/office/en-US/6a21cc05-1f9b-49ad-a9bb-44aa5b3ce312/action?threadDisplayName=after-installing-sql-reporting-services-service-for-sharepoint-2012-service-is-not-in-the-list-of)
    In my lab environment of a 4 server SP2013 farm it worked immediately when i installed it on the app server (CA host) so I dont think it is my install strategy.
    I guess my next attempt is to install SSRS on an app server with central administration hosted.
    Thanks

    I had the same issue on 2 different environments.
    I had 2 application servers. One had Central Administration. I installed SSRS on the other one and it never appeared in the Service Applications in SharePoint.
    When I also provisioned Central Administration on the other application server and went to the service applications using Central Admin on that server, the SSRS service application was there.
    Since then I always install SSRS on the server which hosts Central Admin. No issues then.

  • Azure SQL Reporting - Installing Fonts - Status after 10/31/14

    As Azure is moving reporting service to VM. 
    Is it possible to get fonts installed on SQL Reporting with out migrating to VM until the 2015 deadline?
    IF so how do we get the fonts onto the SQL reporting environment?
    Thanks

    HI Michael,
    Happy Morning!!!
     We have not heard anything on this after sharing the links from Mekh. I am marking the thread as answer, in case you have any queries please unmark and write to us on the same thread. 
    Happy Day!!!Reply
    Regards,
    Lakshmeesha S P 

  • SSRS 2013 Native Mode - Cannot See Report Builder Button after Installing on my Desktop Computer - SQL Server Express

    I have installed SQL Server Express 2013 on my home PC, which runs Windows 7.  I used the advanced installation, which includes Reporting Services.  The install seemed to go okay but when I open SSRS, I cannot see the Report Builder button on the
    screen.  I have spent a lot of time trying to figure this out, including installing and reinstalling the program.  I am not sure what I am doing wrong.  Also, I cannot connect to the report server through SQL Server Management Studio.
    If anyone has any straightforward assistance, it would be greatly appreciated.  I have spent a lot of time looking for answers.  In the meanwhile I'll continue seeing if I can get this to work.

    Hello,
    See
    Features Supported by Reporting Services in SQL Server Express => Unsupported Features:
    Ad hoc reporting through semantic models and Report Builder is not supported.
    But you can try to install & use the Report Builder as stand-alone Installation; you can get it here:
    Microsoft® SQL Server® 2012 Report Builder
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I've tried all the reported fixes to make Time Machine to get past 9.5 GB.

    I've tried all the reported fixes to make Time Machine to get past 9.5 GB. This is a brand new iMac that came with 10.4.11 installed, we then installed 10.5.2 that came in the box for this machine. I have a new 150GB Firewire HD that I formated and partitioned using "GUID" scheme. I repaired permissions on the iMac HD, with no errors. I tried "safe mode", reformatting and everything else that I can think of. Time machine still won't get by that 9. something GB and reports the error. Any help with this will be appreciated, Richard Dion (508) 881-2535
    75 Concord Street
    Ashland, MA 01721
    [email protected]

    Can you detail what the error is, and what fixes you have tried?

  • 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

  • I ran a disk verify & disk repair on my macbook.. both said my system was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error. Help

    m was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error when ever trying to install a driver or update. Help

    Hi,
    Here's an article for that:
    http://support.apple.com/kb/ts1901

  • SQL Reporting services installing sharepoint mode - Error while installing

    Hi I have SharePoint 2013 environment and now i am trying to install SSRS sharepoint mode.
    I use SQL server enterprise version 2012 SP1.
    While installing this i got and error at the end.
    TITLE: Microsoft SQL Server 2012 Service Pack 1 Setup
    The following error has occurred:
    Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
    1- Now i am not able to uninstall this
    2- I also don't see the service application in Central admin under New.
    Please help me to resolve this issue.
    My name is yogendra

    Hi,
    According to your post, my understanding is that you failed to install SSRS sharepoint mode.
    Please make sure you install Reporting Services SharePoint Mode for SharePoint 2013
    correctly.
    You can refer to:
    Install Reporting Services SharePoint Mode for SharePoint 2013
    Installing and configuring SQL Reporting services on SharePoint 2013
    In addition, please install Windows Management Framework 3.0 on the
    build server.
    More information:
    Exception
    Message: Could not load file or assembly 'System.Management.Automation, PublicKeyToken=31bf3856ad364e35'
    How to use SQL Server in Windows and Windows Server environments
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • Currency Symbol for each amount

    Hello People, I have to include currency symbol infront of each amount in my web dynpro application display. Example, there is an amount in USD, currency symbol for USD must be published there and if there is an amount in EUR, currency symbol for EUR

  • Fonts: what is xfce4 doing differently?

    Here is a a screenshot for comparison of my FVWM and XFCE4 setup: link - don't assume it is full size when you first open it - make sure you check. Now, I have highlighted the diffs that bother me.  The left is FVWM, on the right is XFCE4.  You can s

  • Adobe Flash 16 and 17 cause safari & Firefox browsers to jump up and down the page

    Running MAC Pro 2010   10.10.2 Yosemite - Version 15 of adobe Flash was working fine. When version 16 came out the problems started with web pages jumping up and down and not being able to type/ edit things as web page jumps up or down away???  I Use

  • Unknown usb device for dv9910us

    webcam and dvd not working plas help This question was solved. View Solution.

  • BB Desktop and ntlm auth.

    Hello, I have big problem :-) I need using BB Desktop in corporate network with proxy server with ntlm auth.  Desktop use proxy from IE bot not authorizing ntlm. Please helpme. Thx everyone