title: MDT Install Operating System task failed, Return Code = -2147467259 0x80004005
body: <p>I'm trying to apply an image I captured of a Windows 10 install on a tablet (a Getac) to a VM or another tablet of the same type. In both cases I get the same error every time. There are a few errors that appear in the smsts.log file but I guess the most important one is this one? </p>
  
  <pre><code>&lt;![LOG[Could not find CCM install folder. Don't use ccmerrors.dll]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="0" thread="1708" file="string.cpp:1364"&gt;
  </code></pre>
  
  <p>Anyone know how I can resolve this? The Task sequence is pretty much unchanged from the Standard Client Task Sequence and I have created a selection profile and media (to boot from USB) also using the defaults. I'm not running any special code that I'm aware of. </p>
  
  <p>I did have problems when I was capturing the image, because of the fall creators update and some miracastview folder missing, but I was able to get around that by copying that folder from the windows.old location as suggested. I'm not sure if this is related. </p>
  
  <p>A more expanded snip of my log file: </p>
  
  <pre><code>&lt;![LOG[!--------------------------------------------------------------------------------------------!]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="instruction.cxx:814"&gt;
  &lt;![LOG[Could not find CCM install folder. Don't use ccmerrors.dll]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="0" thread="1708" file="string.cpp:1364"&gt;
  &lt;![LOG[Failed to run the action: Install Operating System. 
  Unknown error (Error: 000015F8; Source: Unknown)]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="3" thread="1708" file="instruction.cxx:921"&gt;
  &lt;![LOG[Executing in non SMS standalone mode. Ignoring send a task execution status message request]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="utils.cpp:6496"&gt;
  &lt;![LOG[Set a global environment variable _SMSTSLastActionRetCode=5624]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="0" thread="1708" file="executionenv.cxx:662"&gt;
  &lt;![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="0" thread="1708" file="executionenv.cxx:662"&gt;
  &lt;![LOG[Clear local default environment]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="0" thread="1708" file="executionenv.cxx:801"&gt;
  &lt;![LOG[Let the parent group (Install) decides whether to continue execution]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="0" thread="1708" file="instruction.cxx:1033"&gt;
  &lt;![LOG[The execution of the group (Install) has failed and the execution has been aborted. An action failed.
  Operation aborted (Error: 80004004; Source: Windows)]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="3" thread="1708" file="instruction.cxx:221"&gt;
  &lt;![LOG[Could not find CCM install folder. Don't use ccmerrors.dll]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="0" thread="1708" file="string.cpp:1364"&gt;
  &lt;![LOG[Failed to run the last action: Install Operating System. Execution of task sequence failed.
  Unknown error (Error: 000015F8; Source: Unknown)]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="3" thread="1708" file="engine.cxx:249"&gt;
  &lt;![LOG[Executing in non SMS standalone mode. Ignoring send a task execution status message request]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="utils.cpp:6496"&gt;
  &lt;![LOG[Task Sequence Engine failed! Code: enExecutionFail]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="3" thread="1708" file="tsmanager.cpp:1285"&gt;
  &lt;![LOG[****************************************************************************]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="tsmanager.cpp:1313"&gt;
  &lt;![LOG[Task sequence execution failed with error code 80004005]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="3" thread="1708" file="tsmanager.cpp:1314"&gt;
  &lt;![LOG[Cleaning Up.]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="tsmanager.cpp:794"&gt;
  &lt;![LOG[Removing Authenticator]LOG]!&gt;&lt;time="15:49:24.022+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="tsmanager.cpp:922"&gt;
  &lt;![LOG[Cleaning up task sequence folder]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="utils.cpp:2689"&gt;
  &lt;![LOG[Unable to delete file E:\_SMSTaskSequence\TSEnv.dat (0x80070005). Continuing.]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="ccmfile.cpp:1093"&gt;
  &lt;![LOG[Failed to delete directory 'E:\_SMSTaskSequence']LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="2" thread="1708" file="ccmfile.cpp:1257"&gt;
  &lt;![LOG[SetNamedSecurityInfo() failed.]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="3" thread="1708" file="utils.cpp:7413"&gt;
  &lt;![LOG[SetObjectOwner() failed. 0x80070005.]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="3" thread="1708" file="utils.cpp:7425"&gt;
  &lt;![LOG[RemoveFile() failed for E:\_SMSTaskSequence\TSEnv.dat. 0x80070005.]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="3" thread="1708" file="utils.cpp:7554"&gt;
  &lt;![LOG[RemoveDirectoryW failed (0x80070091) for E:\_SMSTaskSequence]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="2" thread="1708" file="utils.cpp:7638"&gt;
  &lt;![LOG[Deleting volume ID file E:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ...]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="resolvesource.cpp:517"&gt;
  &lt;![LOG[Deleting volume ID file F:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ...]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="resolvesource.cpp:517"&gt;
  &lt;![LOG[Deleting volume ID file V:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ...]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="resolvesource.cpp:517"&gt;
  &lt;![LOG[Successfully unregistered Task Sequencing Environment COM Interface.]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="environmentlib.cpp:960"&gt;
  &lt;![LOG[Executing command line: "X:\Deploy\Tools\X64\TsProgressUI.exe" /Unregister]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="commandline.cpp:828"&gt;
  &lt;![LOG[==========[ TsProgressUI started in process 1776 ]==========]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TsProgressUI" context="" type="1" thread="1924" file="winmain.cpp:330"&gt;
  &lt;![LOG[Unregistering COM classes]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TsProgressUI" context="" type="1" thread="1924" file="winmain.cpp:204"&gt;
  &lt;![LOG[Shutdown complete.]LOG]!&gt;&lt;time="15:49:24.037+480" date="03-06-2018" component="TsProgressUI" context="" type="1" thread="1924" file="winmain.cpp:512"&gt;
  &lt;![LOG[Process completed with exit code 0]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="commandline.cpp:1124"&gt;
  &lt;![LOG[Successfully unregistered TS Progress UI.]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="utils.cpp:3263"&gt;
  &lt;![LOG[RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="2" thread="1708" file="utils.cpp:842"&gt;
  &lt;![LOG[GetTsRegValue() is unsuccessful. 0x80070002.]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="2" thread="1708" file="utils.cpp:873"&gt;
  &lt;![LOG[End program: ]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="tsmanager.cpp:1060"&gt;
  &lt;![LOG[Error Task Sequence Manager failed to execute task sequence. Code 0x80004005]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="3" thread="1708" file="tsmanager.cpp:1064"&gt;
  &lt;![LOG[Sending error status message]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="tsmanager.cpp:1065"&gt;
  &lt;![LOG[In non SMS staqndalone mode.Ignoring SendStatusMessage request]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="tsmanager.cpp:1892"&gt;
  &lt;![LOG[Finalizing logs to root of first available drive]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="tslogging.cpp:1952"&gt;
  &lt;![LOG[Used smsts.ini to set logging settings.]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="tslogging.cpp:1457"&gt;
  &lt;![LOG[Successfully finalized logs to E:\SMSTSLog]LOG]!&gt;&lt;time="15:49:24.053+480" date="03-06-2018" component="TSManager" context="" type="1" thread="1708" file="tslogging.cpp:2009"&gt;
  </code></pre>