09
- August
2017
Posted By : Zeng Yinghua (Sandy)
Monitor ConfigMgr Task Sequence with Status Message Query

This is not about monitor Task Sequence Deployment status, it is about monitor Task Sequence itself.

I use package ID instead of Deployment ID, because you might need to deploy same Task Sequence to many collections with different schedule, and you will have many deployments of same Task Sequence. I don’t want to create many queries for each deployments of same Task Sequence. So let’s be lazy and just create ONE query.

  1. Find you package ID, in my case it is ZIT0000F

  2. Create new Status Message Query

  3. I like to use Name “01. MDT Install Windows”, using numeric will put your custom queries ahead of other default queries, it’s a bit easier to find them later
  4. Click “Edit Query Statement…”

  5. Click “Show Query Language”

  6. Copy these codes and paste them in the query box. Change line 7  ZIT0000F to your own Package ID, then Next, Next.
    select SMS_StatusMessage.*, SMS_StatMsgInsStrings.*, SMS_StatMsgAttributes.*, SMS_StatMsgAttributes.AttributeTime 
    from SMS_StatusMessage 
    left join SMS_StatMsgInsStrings 
    on SMS_StatMsgInsStrings.RecordID = SMS_StatusMessage.RecordID 
    left join SMS_StatMsgAttributes 
    on SMS_StatMsgAttributes.RecordID = SMS_StatusMessage.RecordID 
    where SMS_StatMsgAttributes.AttributeValue = "ZIT0000F" and SMS_StatMsgAttributes.AttributeTime >= ##PRM:SMS_StatMsgAttributes.AttributeTime## 
    order by SMS_StatMsgAttributes.AttributeTime 
    DESC

  7. Right-Click you Status Message Query, click Show Messages

  8. Select date and time, then click OK

  9. Now you can monitor your Task Sequence status.

 

Comments

Leave a Reply

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