Jump to content


anyweb

using Offline Mode in Windows PE using USMT 4 via a task sequence in SCCM 2007 SP2

Recommended Posts

I seem to be getting a weird error...

 

 

The task sequence execution engine failed executing the action (xcopy X86 USMT to USMTbits\X86) in the group (xcopy) with the error code 4

Action output: es\sp10002b\x86\replacementmanifests\microsoft-windows-terminalservices-licenseserver is a directory. Setting directory security

c:\_smstasksequence\packages\sp10002b\x86\replacementmanifests\usb is a directory. Setting directory security

c:\_smstasksequence\packages\sp10002b\x86\replacementmanifests\windowssearchengine is a directory. Setting directory security

Content successfully downloaded at C:\_SMSTaskSequence\Packages\SP10002B

Resolved source to 'C:\_SMSTaskSequence\Packages\SP10002B'

Set command line: Run command line

Working dir 'C:\_SMSTaskSequence\Packages\SP10002B'

Executing command line: Run command line

‰????????Process completed with exit code 4

Command line returned 4

Entering ReleaseSource() for C:\_SMSTaskSequence\Packages\SP10002B

reference count 1 for the source C:\_SMSTaskSequence\Packages\SP10002B before releasing

Delete source directory C:\_SMSTaskSequence\Packages\SP10002B

Invalid drive specification

Released the resolved source C:\_SMSTaskSequence\Packages\SP10002B. The operating system reported error 4: The system cannot open the file.

 

It creates the two folders for USMTbits & Offline?

 

sp10002b is my USMT package??? I've tried updating the DP?

 

Any ideas? It only seemed to stop working since I put the workaround path into XCOPY....

 

This is the path I'm using...

 

xcopy %_SMSTSSP10002B%* %USMTDrive%\USMTbits /herciy

Share this post


Link to post
Share on other sites


Looking into SMSTS.log

 

I can see

 

Content location request for SP100014:1 failed. (Code 0x80040102)

 

But looking through all my packages, os & task sequences I cannot find a reference for SP100014 ????

 

Any ideas?

 

I'm thinking it must be something to do with my scan state package...does it need a program ??? I've just dropped the batch file into a folder and pointed the source files to that folder in the package?

Share this post


Link to post
Share on other sites

pss53, I'm pretty sure that the runstanstate.bat does NOT need a program from within the package... it was working for me without one just last week.

 

Alas, I'm still stuck. However, in case anyone is interested, I was able to determine *why* the runscanstate.bat was taking so long.... this was because in the scanstate.log file, it was trying to copy profiles that were absent in reality and had no ntuser.dat file, but still existed as a SID # within the registry (but had no profile data to be found). Therefore, it was trying to copy each of these nonexistent profiles about twenty times each, failing each time since it could not find the data in C:\Documents and Settings, and waiting six seconds between each retry. I was able to circumnavigate this issue by using the following line in the runscanstate.bat:

 

SET MIG_IGNORE_PROFILE_MISSING=1

 

Now my other issue is still the boot image. Is it normal for the boot image to be copied to C:\_SMSTaskSequence\Packages\DOT0001 (the last part being the package identifier of my x86 boot image)? I read earlier in this thread that you need to have the advertisement set to "download content when needed by task sequence" instead of the "access content directly," so I set it as such. I do have my boot image set to "Allow transfer over multicast (winPE only)" and "Encrypt multicast packages"; should this make a difference?

 

Also, I've tried a substitute boot image, an alternate operating system image, and I've tried re-advertising the task sequence.. so that rules those out. Therefore, I'm almost certain that it's an issue within either the properties of the boot image, or the properties of the specific advertisement..

 

In my smsts log file, I see:

 

Boot Image package not found.

Unspecified error (Error: 80004005; Source: Windows) TSManager 9/12/2011 10:20:20 AM 1752 (0x06D8)

 

Entering ReleaseSource() for C:\_SMSTaskSequence\Packages\DOT00001 TSManager 9/12/2011 10:20:20 AM 1752 (0x06D8)

 

The user tries to release a source directory C:\_SMSTaskSequence\Packages\DOT00001 that is either already released or we have not connected to it TSManager 9/12/2011 10:20:20 AM 1752 (0x06D8)

 

BootImage::ResolveImageSource( pszPackageId, sImagePackageSourcePath, sImageSourcePath), HRESULT=80004005 (e:\nts_sms_fre\sms\framework\tscore\bootimage.cpp,687) TSManager 9/12/2011 10:20:20 AM 1752 (0x06D8)

 

TS::Boot::BootImage::StageBootImage(sBootImageID, StageBootImageProgressCallback, (LPVOID) m_sStageBootImageMessage.c_str()), HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\engine.cxx,816) TSManager 9/12/2011 10:20:20 AM 1752 (0x06D8)

 

Failed to stage a boot image DOT00001.

Unspecified error (Error: 80004005; Source: Windows) TSManager 9/12/2011 10:20:21 AM 1752 (0x06D8)

 

 

I'm really not sure what any of this means, aside from the fact that it was unable to download the boot image locally (aka stage), and therefore it cannot launch. I wish this would start working :blink:

post-11371-0-74321600-1315831972_thumb.jpg

Share this post


Link to post
Share on other sites

Got it... after I unchecked the "Allow this package to be transferred via multicast (WinPE only)" and "Encrypt multicast packages" from within the boot image properties, the TS was able to download and stage the boot image package properly.... I'm not sure yet which one of those settings was the instigator... can anyone enlighten me as to why these options were interfering?

post-11371-0-62084700-1315835511_thumb.jpg

Share this post


Link to post
Share on other sites

I have run this and on most of my PC's it is working flawlessly. On a few it does not bring the profiles back (they are in USMToffline). I believe it is due to local accounts. But my real question is what can I do to manually bring these back. I assume some sort of command line run using loadstate.exe

Share this post


Link to post
Share on other sites

You would do a loadstate command using the proper syntax, i.e.:

 

loadstate C:\USMTBits /i:miguser.xml /i:migapp.xml /uel:60

 

The syntax is here:

 

http://technet.micro...28WS.10%29.aspx

 

I believe if you're running in the WinPE environment, you will need the "/offline:windir:<windows directory path>" switch, and of course the /hardlink and /nocompress switches for the hardlinked data.

Share this post


Link to post
Share on other sites

I've got another question for the USMT experts (anyone here?).

 

I've got this offline TS working 100%, except my "Favorites" are not copying properly. This is in an XP with IE8 environment to Win7 with IE9.

 

The scanstate is definitely capturing the favorites folder as it's supposed to, since I can see them in the C$ folder of the Hardlinks' USMTOffline folder. Then, then loadstate is definitely 'processing' them, as seen in the attached screenshot.

 

For whatever reason though, my favorites are not restored to C:\Users\User1\favorites as they're supposed to be, I simply have the default "Favorites bar" and "Websites for the United States" folders in there.

 

Anyone experience this before, or know what is interfering with the Favorites transfer? FYI I am using a slightly modified MigUser.xml and MigApp.xml (but I've also tested with the barebones config files), in addition to the Printers.xml and Wallpaper.xml files that were provided in this thread.

post-11371-0-73184800-1316099299_thumb.jpg

Share this post


Link to post
Share on other sites

Hi Niall

 

One thing i have noticed is Offline Migration ScaState Progress Bar doesnt show realistic scanstate progress UI like when compared to FullOS Scanstate Progress bar (which shows as Capturing User Files and Settings), is there a way to bringup the Progress bar which is realistic while scanstate is running in Offline?

 

Thank you

Share this post


Link to post
Share on other sites

I use migrecover 3. It works great.

 

Within SCCM 2007:

Click on Computer Association

Right click on PC that needs data recovered

Select View Recovery Information

Copy User State Recovery Key

Browse to User state store location (if no location shown, then it can be found by looking at the advertisement data)

 

On my local pc:

create folders: c:\migrecover\recover

extract the migrecover program into migrecover folder

copy .mig file from user state store location to c:\migrecover

type MigRecover.exe <source MIG file> <destination path> [user State Recovery Key]

 

ex: c:\migrecover.exe USMT.mig c:\migrecover\recover\johnsmith\ 92e879342847298427429436677676

 

note: spaces are before USMT.mig and after USMT.mig and another space after destination path and before user state recovery key

 

For the most part data is now recovered. Occassionally you'll find that the data is corrupted, but after hundreds of times using this because our USMT doesn't always replace the users data automatically, I've only had a couple corrupted .mig files.

Share this post


Link to post
Share on other sites

that wont work here as we are doing an offline mode in winpe (hardlinking) so no computer association is involved

Share this post


Link to post
Share on other sites

Hi there,

Great write up of how to do USMT, i'm attempting to follow it through to refresh our Windows 7 installation but I'm running into a bit of trouble at the moment with the scanstate task, it keeps failing with the error

 

"Failed to run the action: do X86 scanstate. The specified disk or diskette cannot be accessed. (Error: 0000001A; Source: Windows) TSManager 31/10/2011 3:02:53 p.m. 1432 (0x0598)" which is from the smsts log.

 

If I open the ScanState log I get this error 2011-10-31 15:02:53, Error [0x000000] Invalid Windows folder for offline gather to start - c:\windows[gle=0x00000003]

 

I have uploaded the SMSTS log and the ScanState log

 

Any help would be much appreciated

Share this post


Link to post
Share on other sites

Following up with this I think that it's related to the Windows 7 "System Reserved" partition that is created at the front of the drive. Win PE sees this drive as the C: drive and the actual C: drive as the D: drive, this is causing all sorts of problems...

Share this post


Link to post
Share on other sites

well if you didnt find the user state then either scanstate or loadstate failed, review the logs to find out which did (usually scanstate fails, so review scanstate.log)

Share this post


Link to post
Share on other sites

Hi,

After apply windows...i found this error.

Expand a string: FullOS TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

!bInWinPE, HRESULT=80070032 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\instruction.cxx,2725) TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

The step (Restore User State) must be running in full OS TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

!--------------------------------------------------------------------------------------------! TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Failed to run the action: Restore User State.

The request is not supported. (Error: 80070032; Source: Windows) TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Sending status message . . . TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Send a task execution status message SMS_TSExecution_ActionFailError TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

MP server kol-sccm-child.mps.lan and port 80. SSL=false. CRL=false. TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Site code: MPC TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Client machine name: TESTCLIENT TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Client Identity: GUID:0ABBFA55-7DA8-407B-A27B-A4CA86DFBD8B TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Advertisement ID: MPC2004E TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Package ID: MPC00049 TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Sending StatusMessage TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Formatted header: TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>2ed14f2e-4f79-419f-9a9e-a1c5e0e1a957</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2012-01-17T11:47:51Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="2186"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>

TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

CLibSMSMessageWinHttpTransport::Send: URL: kol-sccm-child.mps.lan:80 CCM_POST /ccm_system/request TSManager 17/01/2012 5:17:52 PM 1456 (0x05B0)

The request has succeeded. 200 OK TSManager 17/01/2012 5:17:52 PM 1456 (0x05B0)

Set a global environment variable _SMSTSLastActionRetCode=50 TSManager 17/01/2012 5:17:52 PM 1456 (0x05B0)

Set a global environment variable _SMSTSLastActionSucceeded=false TSManager 17/01/2012 5:17:52 PM 1456 (0x05B0)

Share this post


Link to post
Share on other sites

you are probably trying to run the command in windows PE which isnt supported, so check where you are trying to run the step, you need to restore user state in full windows...

 

Failed to run the action: Restore User State.

The request is not supported. (Error: 80070032; Source: Windows) TSManager 17/01/2012 5:17:51 PM 1456 (0x05B0)

Share this post


Link to post
Share on other sites

yes , when i am advertise the task sequence I choose "Make it availabe ....in boot media....or pxe..." ,OK I changed this to unmark and lets try again....

 

But as per your screen shot http://www.windows-noob.com/forums/index.php?/topic/1755-migrate-xp-to-windows-7-using-offline-mode-in-windows-pe-screenshots-describing-the-process/ you have mentioned start xp with win pe mode . and I am doing as per your instaruction and I am not changing anything.

Share this post


Link to post
Share on other sites

that;s not what i'm referring to, the step 'restore user state' must be running in the Full OS, not in WinPE which is what caused your error.

Share this post


Link to post
Share on other sites

And also how to run 'restore user state' without WinPE bcoz when I advertised the TS I checked ''Make it availabe ....in boot media....or pxe..." without it can I run this in pxe boot

Share this post


Link to post
Share on other sites

look at the task sequence in the screenshot below, notice that the Restore user state happens AFTER Setup Windows and ConfigMgr, in other words, in Windows...

is yours before or after that step ?

 

 

post-1-12734691565231.jpg

Share this post


Link to post
Share on other sites

that has no relevance to your issue, your task sequence must be failing in the setup windows and confirmgr step, do you by any chance have that step set to continue on error ? bad idea... please post your entire SMSTS.log file here

Share this post


Link to post
Share on other sites

Thank you sir thank you very much ............its working and my problem has been solved ..............problem in my sccm client package...........you are always right ...thanks again.

Share this post


Link to post
Share on other sites

glad it's working for you now :-)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...