Wow I wish I had found this 3 moths ago. I did the same thing more or less with a workmate. NO WAY as all inclusive as this but handles about 85% of troubled systems we have out there.
This would have cut out many hours of work, I hope more of you out there try this during the last dying days of 2007.
What we built was to make sure clients were in good shape to receive SCCM 2012 client. I think this would have been a better solution!