Close Menu
    Facebook X (Twitter) Instagram
    Trending
    • Workplace Ninja User Group Denmark – April 2026 Meetup
    • Workplace Ninja User Group Denmark March 2026 Meetup
    • Workplace Ninja User Group Denmark February 2026 Meetup
    • Successful Adoption of a “Cloud First” Strategy
    • Speaking at Nordic Virtual Summit
    • Workplace Ninja User Group Denmark February Meetup
    • Workplace Ninja User Group Denmark Meetup – May 2022
    • Workplace Ninja User Group Denmark Meetup – April 2022
    RONNIPEDERSEN.COM
    • Home
    • Enterprise Mobility
      • Configuration Manager
      • Identity and Access
      • Information Protection
      • Intune
    • Cloud and Data Center
      • Data Center Management
      • Group Policy
      • Enterprise Security
      • Hyper-V
      • PowerShell
    • Guides
    • Webcasts
    • Links
    • About
      • Contact me
      • Disclaimer
    RONNIPEDERSEN.COM
    You are at:Home»Uncategorized»Monitoring ConfigMgr 2012 OS Deployment using State Messages

    Monitoring ConfigMgr 2012 OS Deployment using State Messages

    9
    By Ronni Pedersen on March 6, 2012 Uncategorized

    When troubleshooting OS Deployment in System Center 2012 Configuration Manager, I really miss the state messages from the advertisement status in ConfigMgr 2007.

    You can find the same information in reports, but for this scenario, I really prefer the Status Messages.

    This guide will help you create a Status Message Query for a Specific Deployment ID.

    First you need to get the deployment ID of the Task Sequence you wish to monitor.

    Monitoring -> Overview -> Deployments. (The Deployment ID are not displayed by default).

    clip_image002

    Navigate to the Status Message Queries:

    Monitoring -> Overview -> System Status -> Status Message Queries, and click Create Status Message Query.

    Give the Status Message Query a name, and click Edit Query Statement…

    clip_image004

    Click Show Query Language.

    clip_image005

    Copy the following Query into the Query Statement, and click OK.

    Replace the site code (P01) and the Deployment ID (P01200ED), in the query.

    select stat.*, ins.*, att1.*, att1.AttributeTime from SMS_StatusMessage as stat left join SMS_StatMsgInsStrings as ins on stat.RecordID = ins.RecordID left join SMS_StatMsgAttributes as att1 on stat.RecordID = att1.RecordID inner join SMS_StatMsgAttributes as att2 on stat.RecordID = att2.RecordID where att2.AttributeID = 401 and att2.AttributeValue = "P01200ED" and stat.SiteCode = "P01" and att2.AttributeTime >= ##PRM:SMS_StatMsgAttributes.AttributeTime## order by att1.AttributeTime desc

    clip_image006

    Click OK, and complete the wizard.

    Now we’re ready to launch the Query:

    clip_image007

    Select the date and time (default 1 hour ago), and click OK.

    clip_image008

    And now we’re ready to monitor the deployment like we did in the good old CM07 days J

    clip_image010

    Enjoy.

    • Tweet
    • Share 0
    • +1
    • LinkedIn 0

    Related

    Ronni Pedersen
    • Website
    • Facebook
    • X (Twitter)
    • LinkedIn

    My name is Ronni Pedersen and I'm currently working as a Cloud Architect at APENTO in Denmark. My primary focus is Enterprise Client Management solutions, based on technologies like AzureAD, Intune, EMS and System Center Configuration Manager. I'm is also a Microsoft Certified Trainer and Microsoft MVP in Enterprise Mobility.

    Related Posts

    Successful Adoption of a “Cloud First” Strategy

    Workplace Ninja User Group Denmark Meetup – May 2022

    SCCM: Enable Desktop Clients as PXE Servers

    9 Comments

    1. Ogeccut on March 8, 2012 19:28

      Can you please explain a bit about the Query? Thank you.

      Reply
      • Ronni Pedersen on March 8, 2012 21:43

        Sure… All you need to do, is to copy the query at replace the Site Code and the Deployment ID. Then it should be working just fine.

        Reply
    2. Ogeccut on March 9, 2012 15:14

      Thank you. I would like to know what is it doing? Maybe some details about the language?

      Reply
    3. John on October 23, 2012 03:42

      Great query thank you I was looking everywhere for this..

      Reply
    4. Michael Simionato on November 7, 2014 05:46

      Great Query. Is there any way of changing the system value from Minint-xxxxxxx to the actual machine name that is being configured.

      Reply
      • Ronni Pedersen on November 12, 2014 15:07

        Absolutely… You can change the ComputerName dynamically. I always recommend using the MDT Toolkit.
        Here is an example: https://www.ronnipedersen.com/2014/10/setting-osdcomputername-using-customsettings-ini/

        Reply
    5. jose on March 24, 2015 20:58

      Thanks for this, have you seen any of these queries return results for “Application Model” apps?

      Reply
      • Ronni Pedersen on April 6, 2015 18:47

        I normally don’t use Applications in my Task Sequence. I always use packages.

        Reply
    6. Tom on March 26, 2015 21:06

      Great query! I’ve been looking to do this within SQL and that’s how I landed on this page, I was thinking there was no other option but clearly there is 🙂 Thanks!

      Reply
    Leave A Reply Cancel Reply

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

    Follow
    APENTO

    Follow APENTO here:

    Subscribe to Blog via Email

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    About
    My name i s Ronni Pedersen and I'm currently working as a Cloud Architect at APENTO in Denmark. My primary focus is Endpoint Management and Security, based on Microsoft technologies. I'm also a Microsoft Certified Trainer and a dual Microsoft MVP in both Security and Windows.
    Recent Posts
    • Workplace Ninja User Group Denmark – April 2026 Meetup
    • Workplace Ninja User Group Denmark March 2026 Meetup
    • Workplace Ninja User Group Denmark February 2026 Meetup
    • Successful Adoption of a “Cloud First” Strategy
    • Speaking at Nordic Virtual Summit
    Archives
    TOP POSTS
    • SCCM: Failed to Get Client Identity (80004005)
    • SCCM 2012 R2: Where is the SMSTS.log located?
    • SCCM 2012 R2 CU3 (KB2994331) Available for Download
    • Find the TimeZoneName for your SCCM/MDT Deployments
    • Setting OSDComputerName using CustomSettings.ini
    RECENT COMMENTS
    • cOSHi on Missing “UserType” attribute in Azure AD
    • Gus on Pro Tip: Use Ctrl+Alt+D from the Azure Portal to get performance information
    • Sebi on Prepare for Co-Management: Migrate Intune Devices without user affinity
    • Vadim P on SCCM: Failed to Get Client Identity (80004005)
    • TM on Active Directory Based Activation in an multi domain environment
    DISCLAIMER
    The content on this website is presented "as-is" with no guarantees. The use of scripts from this website is at your own risk. Always test before putting something in production! Opinions expressed are my own.
    © 2026 ThemeSphere. Designed by ThemeSphere.

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