Webclass in Win7 PE

Aug 26, 2009 at 7:55 AM

I'm trying to build a Win 7 deployment using the new 6.1.7600.16385 WAIK, and I can't get the MoveComputertoUI webclass to work with the new WinPE. This is a brand new MDT installation on a new computer so it might be something else that messes things up, but I don't think so.

When I run the Z-MoveComputer_StagingOU script I get the following error in the log at the "Set oService = new WebService" line:

ZTI ERROR - Unhandled error returned by Z-MoveComputer_StagingOU: Class not defined (506) Z-MoveComputer_StagingOU 2009-08-26 09:44:21 0 (0x0000)
Litetouch deployment failed, Return Code = -2147467259  0x80004005 LiteTouch 2009-08-26 09:44:21 0 (0x0000)

Am I missing something, or is there a problem calling a webclass from the new WinPE?

Thanks.

Coordinator
Aug 28, 2009 at 12:21 PM

This problem came due to some changes in MDT 2010. They moved the classes "Database" and "Webservice" from "ZTIUtilities.vbs" into a separate script file called "ZTIDataAccess.vbs". So you would need to add this as a reference in your scripts. Additionally, the processing of the result has changed a bit.

Please see this Post http://myitforum.com/cs2/blogs/maikkoster/archive/2009/08/28/making-custom-database-and-webservice-scripts-work-again-in-mdt-2010.aspx for more information on how to deal with the changes. The example scripts have been updated and can be found here.

 

Regards

Maik

Aug 28, 2009 at 12:23 PM

Thanks Maik!