Custom Visual Basic 6 (VB6) app in SCCM WinPE run-time error 429
Hello all, I have written a small VB6 app that queries and lists the members of an OU in our Active Directory domain. I need to run this app from the SCCM WinPe boot image when I am applying OSD to a computer. The VB6 app is very basic, and does not use any additional add-ons or plugins. I have created a package that contains my VB6 exe, and I have downloaded and extracted the Visual Basic 6 and Windows Script Host runtime files, and placed them in the same package as the exe. I added a "Run Command Line" step to the task sequence which references the package. When the task sequence step runs, the form does not load and I get error: Run-time error 429 cannot create Active X object. Anybody have any tips on getting this working? Is there a programming language that will run natively in SCCM WinPE? Thanks in advance!
July 16th, 2012 11:24am

VB6 works fine in WinPE, we use it all the time, and for many years. did you need to cater for msvbvm60.dll ?Don
Free Windows Admin Tool Kit Click here and download it now
July 16th, 2012 5:19pm

Thanks Don. So you didn't have to do anything to your WinPE image to get VB6 apps to run in it? We are using the stock WinPE that comes with SCCM 2007 R3. I ran my VB6 exe through Dependency Walker, and I think the only file the app requires is MSVBVM60.dll, which I have placed in the same package as the exe. What do you mean by 'cater for msvbvm60.dll'?
July 16th, 2012 6:43pm

sorry, just re-read your question. The AD query you are doing, will need you to add the ADSI package into WinPE (as it is not present in the default WinPE build). my colleague has just confirmed he saw your error when first tackling the same. same issue if you want to use WMI methods - you'll need to add the WMI package into WinPE. without these packages added, the COM object isn't available to you. So, it's not VB6 per-se, it's what you're doing with VB6 ;) Don
Free Windows Admin Tool Kit Click here and download it now
July 16th, 2012 7:09pm

Thanks! I didn't realize the ADSI components are not included in msvbvm60.dll. I found an ADSI package for WinPE 3.0 at http://www.deployvista.com/Blog/tabid/70/EntryID/127/language/en-US/Default.aspx. Now I just have to figure out how to update the built in SCCM WinPE with the ADSI package. Thanks for your help!
July 17th, 2012 10:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics