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.
- Find you package ID, in my case it is ZIT0000F
- Create new Status Message Query
- 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
- Click “Edit Query Statement…”
- Click “Show Query Language”
- 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
- Right-Click you Status Message Query, click Show Messages
- Select date and time, then click OK
- Now you can monitor your Task Sequence status.
Is there a way to show the computer name on the system column after its the computer name has been updated in the OSD?
I am not 100% sure, but I think cannot change system column to show computer name in status message query. When install new machine, it always shows MININT-xxxxxx as System name, if reinstall machine that is already in ConfigMgr database, then it shows the computer name in system column.
However, these are few links you can check it out. Trevor Jones has many post about monitor/reporting OSD, they are my favorites.
Really nice. Thank you.
You are welcome, thanks for reading. 🙂
Thank you for sharing Sandy.
I was using a query before to monitor based on the Deployment ID, and like you said, there were multiple deployments for the same Task Sequence Package. This solves the issue of creating multiple queries for one pkg.
You’re welcome Ryan, and thanks for letting me know that you found it useful. 😀