When working on a client site, the laboratory where I have the MDT server(s) set up along with the test machines is not always in the same place as where I am. This could be for a variety of reasons, but usually it is that the lab area is either too cold to stay in (aggressive AC being used!) or just too cramped to spend a lot of time in. This can be a bit of a pain where running successive MDT deployment tests as it requires lots of back-and-forth between my location and the lab area; I can usually use RDP to control the MDT server, but not for the computers being deployed because they are usually either in a WinPE phase, or don't yet have RDP enabled on them.
Because necessity is the mother of invention, I wrote a simple HTA program that I use to keep an eye on the progress of computers being deployed. This solves the problem of going to the laboratory to check on a computer, only to find that it is still being deployed! Basically, the HTA works by keeping an eye on an "eventshare" configured from within MDT and reports the progress back to the HTA window. Whilst this could never be a replacement for a proper monitoring system such as Systems Centre Operations Manager (SCOM) due to scalability and features, it works great for me when working in laboratory conditions; as such, I thought I'd share it here!
The HTA makes use of the little used EventShare property of MDT which allows you to specify a UNC path for the storage of task sequence events. This property is typically used when implementing the Microsoft Deployment Toolkit Management Pack for SCOM 2007, but you can use it for other purposes when SCOM isn't available :-) - see the MDT documentation if you want to find out more about this property.
To start using the HTA you need to download the ZIP file attached to this post, and then realise the following steps:
Being non-production code, you should be aware of a few of things when using:
If the above things are an issue for you, then you should look at using SCOM to monitor deployments rather than this simple HTA. The HTA will display the name of the computer being displayed, the type of deployment, and what the current step is in the task sequence. I have been using it for a while without any problems, but if you do find any bugs or have suggestions on how to improve it, please post them on this page as comments! Finally, as with all scripts/code posted on this blog, this is totally unsupported by Microsoft.
This post was contributed by Daniel Oxley, a Consultant with Microsoft Services Spain
<p>Great idea and thanks for sharing Daniel ;-)</p>
<p>Great post over on The Deployment Guys blog by Daniel Oxley. Read the full post and download here. When</p>
<p>Good idea Dan. Now you just need to take it a step further and grep the current_task/total_task_# and turn that into a bar graph of all the currently building machines. This really helps to see status at a glance.</p>
<p>Great tool , thanks </p>
<p>Within the custom settings is under the [Settings] or under the [Default] that i put the "EventShare=\\MDTServer\foldername"?</p>
<p>@Kevin - in the DEFAULT section</p>
<p>i really like the tool, but have come across an issue, if i set it to refresh every 2 mins, something eventually happens after a little while where it starts updating constantly, and causes locks on the files in the folder.</p>