OS image capturing issue from reference computer

Rakesh Kumar 461 Reputation points
2023-02-09T10:21:36.8533333+00:00

hi All,

i'm trying to capture the image from a VMWare VM but it fails every time at Sysprep stage.

below is the error i get every time.

Failed to delete directory 'C:_SMSTaskSequence'    TSManager    09/02/2023 10:00:55    9072 (0x2370)
::DeleteFileW (szFName), HRESULT=80070005 (C:__w\1\s\src\Framework\TSCore\utils.cpp,8172)    TSManager    09/02/2023 10:00:55    9072 (0x2370)
DeleteFile(B) failed for C:_SMSTaskSequence\sms\bin\x64\TsManager.exe    TSManager    09/02/2023 10:00:55    9072 (0x2370)
RemoveFile() failed for C:_SMSTaskSequence\sms\bin\x64\TsManager.exe. 0x80070005.    TSManager    09/02/2023 10:00:55    9072 (0x2370)
RemoveDirectoryW failed (0x80070091) for C:_SMSTaskSequence\sms\bin\x64    TSManager    09/02/2023 10:00:55    9072 (0x2370)
RemoveDirectoryW failed (0x80070091) for C:_SMSTaskSequence\sms\bin    TSManager    09/02/2023 10:00:55    9072 (0x2370)
RemoveDirectoryW failed (0x80070091) for C:_SMSTaskSequence\sms    TSManager    09/02/2023 10:00:55    9072 (0x2370)
RemoveDirectoryW failed (0x80070091) for C:_SMSTaskSequence    TSManager    09/02/2023 10:00:55    9072 (0x2370)
Deleting volume ID file C:_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ...    TSManager    09/02/2023 10:00:55    9072 (0x2370)
DeleteFileW(sVolumeIDFile.c_str()), HRESULT=80070002 (C:__w\1\s\src\Framework\TSCore\resolvesource.cpp,520)    TSManager    09/02/2023 10:00:55    9072 (0x2370)
hTsCore != NULL, HRESULT=8007007e (C:__w\1\s\src\Framework\TSCore\environmentlib.cpp,944)    TSManager    09/02/2023 10:00:55    9072 (0x2370)
Failed to load TSCore.dll Code (0x8007007E).    TSManager    09/02/2023 10:00:55    9072 (0x2370)
CCM::Utility::Filesystem::File::Exists( sTSProgressUIExe ), HRESULT=80070002 (C:__w\1\s\src\Framework\TSCore\utils.cpp,3187)    TSManager    09/02/2023 10:00:55    9072 (0x2370)
Missing Task Sequence Progress UI executable C:_SMSTaskSequence\sms\bin\x64\TsProgressUI.exe.    TSManager    09/02/2023 10:00:55    9072 (0x2370)
GetTSProgressUIExe(sourceDir, sTSProgressUIExe), HRESULT=80070002 (C:__w\1\s\src\Framework\TSCore\utils.cpp,3280)    TSManager    09/02/2023 10:00:55    9072 (0x2370)
g_TSManager.Run(), HRESULT=80004005 (C:__w\1\s\src\client\TaskSequence\TSManager\tsmanager.cpp,486)    TSManager    09/02/2023 10:00:55    9072 (0x2370)
::RegQueryValueExW(hSubKey, szReg, NULL, NULL, NULL, &dwSize), HRESULT=80070002 (C:__w\1\s\src\Framework\TSCore\utils.cpp,691)    TSManager    09/02/2023 10:00:55    9072 (0x2370)
RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram    TSManager    09/02/2023 10:00:55    9072 (0x2370)
GetTsRegValue() is unsuccessful. 0x80070002.    TSManager    09/02/2023 10:00:55    9072 (0x2370)
End program (running in tsmanager service):     TSManager    09/02/2023 10:00:55    9072 (0x2370)
Error executing Task Sequence Manager service. Code 0x80004005    TSManager    09/02/2023 10:00:55    9072 (0x2370)

Microsoft Configuration Manager
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. XinGuo-MSFT 21,051 Reputation points
    2023-02-10T06:42:22.02+00:00

    Hi,

    Please try to generalize your image by manually running sysprep in the Windows.

    Follow the steps below to generalize your image and make it ready for deployment.
    
    1. Press Windows logo key + X at the same time. Select Command Prompt (Admin) from the menu.
    
    2. Type cd \Windows\System32\Sysprep and then press Enter.
    
    3. Type sysprep and then press Enter to open Sysprep GUI mode.
    
    4. Choose Enter System Out-of-Box Experience (OOBE) and tick the Generalize checkbox. Select Shutdown from the drop-down menu. Then click OK.
    
    

    How did you capture the image?

    Capture

    Capture1

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.