USMT not working

Ahmed Essam 80 Reputation points
2024-04-29T14:35:01.8333333+00:00

Hello,

I'm trying to use USMT to refresh windows 10 to windows 11 using hard-link, I've created simple task sequence: Capture User Files and Settings (FullOS) Mode and other WinPE mode.

i put some test files on desktop, but i noticed the windows is rebooting without taking the files, i started looking at the log file scanstate.log

I found errors:

2024-04-29 17:15:01, Error [0x0802e3] SelectTransport: OpenDevice failed with Exception: Win32Exception: c:_SMSTaskSequence\UserState\USMT: The directory is not empty. [0x00000091] void __cdecl Mig::CMediaManager::SelectTransportInternal(int,unsigned int,struct Mig::IDeviceInitializationData *,int,int,int,unsigned __int64,class Mig::CDeviceProgressAdapter *)

Error [0x000000] Unable to create store at D:_SMSTaskSequence\UserState\USMT [0x000000] Failed to select store. Path: D:_SMSTaskSequence\UserState [0x000000] Failed.[gle=0x00000006]

[0x000000] ----------------------------------- USMT ERROR SUMMARY -----------------------------------

[0x000000] * USMT error code 35:

and info not error A store path can't be used because it contains data that could not be overwritten

Microsoft Configuration Manager
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenLiu-MSFT 40,961 Reputation points Microsoft Vendor
    2024-04-30T02:49:30.1966667+00:00

    Hi, @Ahmed Essam

    Thank you for posting in Microsoft Q&A forum.

    Based on the error message you provided, it seems that the store path you are trying to use contains data that could not be overwritten. This is causing the USMT to fail with error code 35. To resolve this issue, you will need to specify a different store path that does not contain any data that needs to be overwritten.

    Additionally, it is recommended that you run the UsmtUtils.exe command with the /Verify option to ensure that the created store isn't corrupted. This can help you identify any issues with the store before you attempt to use it for migration.

    Here is an example command line using task sequence variables that does a hard-link migration with the efs option set to hardlink:

    .\%PROCESSOR_ARCHITECTURE%\scanstate.exe %OSDStateStorePath% /o /localonly /c /efs:hardlink /v:5 /l:%_SMSTSLogPath%\scanstate.log /progress:%_SMSTSLogPath%\scanstateprogress.log /i:.\%PROCESSOR_ARCHITECTURE%\migdocs.xml /i:.\%PROCESSOR_ARCHITECTURE%\migapp.xml /hardlink /nocompress %OSDMigrateAdditionalCaptureOptions%
    
    

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".