I just got this weird issue -- seems a bunch of others got it too (look here: http://social.technet.microsoft.com/Forums/en-US/mdt/thread/78ba73ee-9775-4a2d-a4f5-3b95e7bb1976 - and here: http://social.technet.microsoft.com/Forums/en-US/mdt/thread/048f0c99-393c-40b5-b140-3095f65ca438)
I'm using USMT 5 with MDT 2012. In the UserCapture.log, it seems that the issue is that it's looking for a version of Windows, but doesn't find it. Makes sense, since I'm running in Windows PE. But this error doesn't occur with USMT 4. Digging in the ZTIUserState.wsf file, I found an if cmd that does this:If sUSMTVersion = "USMT5" then
If Left(oEnvironment.Item("ImageBuild"),3) = "6.1" then
oLogging.CreateEntry "Special Case for USMT 5.0 scanstate for Windows 7 Target. /targetWindows7", LogTypeInfo
sBaseArgs = sBaseArgs & " /targetWindows7"
By editing out the sBaseArgs = sBaseArgs & " /targetWindows7" section, the deployment works no problem. This section doesn't get called for USMT 3 or 4. So I was wondering, what does this part do?? Is it some type of necessary command, and if so, how does one get it to work in Windows PE, since it errors out because it's not running in the full-blown OS??
Sorry about the late reply - with VBscript, you just add an apostrophe to the beginning of a line, and it comments it out. So by changing the line sBaseArgs = sBaseArgs & " /targetWindows7" to ' sBaseArgs = sBaseArgs & " /targetWindows7" -- the entire line gets commented out.
This fixed the issue for me -- still haven't seen any issues with it, but I wish I knew why it's in there, and what it does....UPDATE - whoops, your question asked what I did. I just edited out just the line, not the entire section, as I thought the section did some other things that I didn't want to mess up
- Edited by Q-Tech Thursday, February 21, 2013 3:41 PM Added more info
So, I'm seeing the same thing. I'm running the latest version of ADK 8.1, attempting to upgrade an XP machine to Windows 7. (later from XP to Windows 8)
Is there a good explanation as to why this needs to be done in order to get things to work properly?
I've seen this line commented out to fix issues in the past.
/targetwindows7 is a USMT5 switch. It's used to optimise the manifests so that only Windows 7 compatible components are captured. It's meant to filter out incompatibility.
Sadly it's not documented on Technet but its the equivalent of /TargetVista in USMT4 and /TargetXP in USMT3.