I have tested and confirmed this code DOES NOT work. Not sure how best to correct it, or if it can be "automatically" corrected.

Does the original HTA code work correctly with WSH?

I also found a couple of && code pieces left in the source which KiXtart does not know how to handle so it quits with an error.

This code is NOT fully functional, but is close and should get you close enough to get it working once you supply the correct CONTAINER and SEARCHNAME

I will post in the SCRIPTS forum the code that I currently have for this application. Hopefully someone else can work on it and make it function correctly with the RootDSE containers and such.