From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf Of Keith Garner
Sent: Friday, October 30, 2009 5:04 PM
To: mdtosd@lists.myitforum.com
Subject: RE: [MDT-OSD] MDT 2010 Toolkit - different behavior that 2008

 

wshShell.Run "%DEPLOYROOT%\Scripts\MoveTSWindow.exe",2,True


Should not work anyways, wshShell.run does not auto expand out environment variables. If you were using MDT 2010, I would instead recomend:
 
wshShell.run oUtiliy.Substitute("%DEPLOYROOT%\Scripts\MoveTSWindow.exe"),2,True
 
The oUtility.Substitue will auto expand out system environment variables like %SystemRoot% and things defined in the MDT environment like %DeployRoot%.
 
As for why you are not getting any variables like %deployroot%, Just be sure you have properly initialized the MDT environment within SCCM.
 
-k
 


Subject: [MDT-OSD] MDT 2010 Toolkit - different behavior that 2008
Date: Fri, 30 Oct 2009 16:18:23 -0400
From: EGiroux@UNUM.COM
To: mdtosd@lists.myitforum.com

I’m upgrading my MDT-SCCM integrated build environment to MDT 2010 from MDT 2008 and SCCM SP2 from SP1.  I’m noticing a few quirks in my builds in my test environment since doing the upgrade.  Here’s the area where there seems to be some difference:

 

During my builds I call an HTA to gather user input from the technician if SQL data to automate the deployment is not available.  Within this HTA I call a couple external items from with my MDT Toolkit package like this:

 

wshShell.Run "%DEPLOYROOT%\Scripts\MoveTSWindow.exe",2,True

 

With MDT 2008 integration this has always worked fine.  It does not work with 2010.  It seems like the %DEPLOYROOT% and %SCRIPTROOT% variables are more restricted with 2010.  Has anyone else experienced this?  I’m trying to avoid using hardcoded paths to call the external items as this may be different in different deployment scenarios.  I’ve tried changing the calls to:

 

wshShell.Run oEnviroment.Item("DEPLOYROOT") & "\Scripts\MoveTSWindow.exe",2,True

 

That doesn’t work either.  Any ideas what changed here?  Seems to be something within the MDT scripts and possibly the stuff happening during the Gather action.

 

Thanks,

Eric Giroux

Unum Group

Published with BlogMailr



Trackbacks

No Trackbacks

Comments

No Comments