Close Menu
    Facebook X (Twitter) Instagram
    Saturday, October 11
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»SCCM 2007»SCCM report to list all the advertisement that are currently assigned to computer

    SCCM report to list all the advertisement that are currently assigned to computer

    Eswar KonetiBy Eswar KonetiDecember 09, 11:11 am2 Mins Read SCCM 2007 8,703 Views
    Share
    Facebook Twitter LinkedIn Reddit

    When you assign any advertisement (either application or Task sequence) to collection(Group of computers) ,all the advertisement will be tracked(logged) in SCCM Database with its status and other details.The advertisement will run on the computer and gives the status of it which can be find Via Default reports “All advertisement for specific computer(Report ID:126)”.

    What ,if you move the advertisement to different different collection where the computers(which you advertised above) are not part of this collection and you want to track all the advertisements that are currently assigned to specific computer.

    You can get this currently assigned advertisements by simply Right click on computer--->properties--->Advertisements Tab (its list only currently assigned ones) but how about the status and what is the package name and program name etc. details.

    Do you use the default report(126) ? No,because it will gives you all the advertisements that are assigned to computer but not current advertisements assigned to it (computer) since it uses View called V_advertisement

    Below is the report to fetch the list of current advertisements assigned to computer with other information added to it.You can still apply the same to collection instead of specific computer as well.

    SELECT distinct dv.AdvertisementName,stat.LastStateName,adv.AdvertisementID,pkg.PackageID,adv.ProgramName from v_Advertisement adv
        inner join v_FullCollectionMembership FCM ON FCM.CollectionID=adv.CollectionID
        Inner join v_CurrentAdvertisementAssignments CADV ON CADV.AdvertisementID=adv.AdvertisementID
        inner join v_Package pkg ON pkg.PackageID=adv.PackageID
        JOIN v_ClientAdvertisementStatus stat ON stat.AdvertisementID = adv.AdvertisementID
        where FCM.Name=@computer

    Prompt for computer: Select name from V_R_system

    If you use the prompt value for computer,it might take some time to display all the computer from Database if you have more than 1000 computers instead,you can specify the computer name directly in Query before you run the report.

    Hope it helps you  Smile

    All Advertisements assigned to COmputer Configmgr 2007 configmgr report SCCM SCCM 2007 SCCM report to list all the advertisement that are currently assigned to computer SCCM Reports SMS SQL
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Optimize Your Intune Workflow with a Powerful Browser Extension

    March 22, 10:39 am

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    4 Comments

    1. sean on July 1, 2013 3:08 AM

      when you say "You can still apply the same to collection instead of specific computer as well." How can it be accomplished>

      Reply
      • Eswar Koneti on July 11, 2013 12:26 PM

        you will have replace the collection ID prompt info with system info.

        Reply
    2. Chris on October 5, 2011 2:33 AM

      Cool report.

      I have a question, whats an sql statement to report how many machines have the same Advertisement?
      For example I created Adobe Writer Package and assigned the policy or advertisement through AD Group Security Membership.

      1 Month from now I want to run a report to show how many machines have this AD Security Advertisement membership.

      Thanks,
      Chris

      Reply
      • Eswar Koneti on October 15, 2011 12:36 PM

        to get report for month or so to see how many computers has ,take a look at this report http://eskonr.com/2011/09/sla-report-for-sccm-software-distribution/

        Reply

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.