locked
Failed to create shared environment when deploying W10 v1703 via MDT RRS feed

  • Question

  • Hello,

    I'm currently working on a deployment task sequence for my MDT server. I have successfully captured a reference image without issue, but when I attempt to deploy the image now, it goes through the various steps and then appears to fail during the State Restore portion of the TS.

    This is the error it throws:

    <![LOG[==============================[ TSMBootStrap.exe ]==============================]LOG]!><time="14:38:55.666+240" date="05-09-2017" component="TSMBootstrap" context="" type="1" thread="500" file="tsmbootstrap.cpp:1193">
    <![LOG[Command line: "C:\MININT\Tools\X64\TsmBootstrap.exe"  /env:SAContinue]LOG]!><time="14:38:55.666+240" date="05-09-2017" component="TSMBootstrap" context="" type="0" thread="500" file="tsmbootstrap.cpp:1194">
    <![LOG[Current OS version is 10.0.15063.0]LOG]!><time="14:38:55.729+240" date="05-09-2017" component="TSMBootstrap" context="" type="1" thread="500" file="util.cpp:3362">
    <![LOG[Running Task Sequence in standalone.]LOG]!><time="14:38:55.807+240" date="05-09-2017" component="TSMBootstrap" context="" type="0" thread="500" file="tsmbootstrap.cpp:524">
    <![LOG[Failed to create shared environment)]LOG]!><time="14:38:55.807+240" date="05-09-2017" component="TSMBootstrap" context="" type="3" thread="500" file="environmentscope.cpp:573">
    <![LOG[Failed to create the Shared Environment object. Code(0x80070005)]LOG]!><time="14:38:55.807+240" date="05-09-2017" component="TSMBootstrap" context="" type="3" thread="500" file="tsmbootstrap.cpp:531">
    <![LOG[Failed to run task sequence (0x80070005).]LOG]!><time="14:38:55.807+240" date="05-09-2017" component="TSMBootstrap" context="" type="3" thread="500" file="tsmbootstrap.cpp:706">
    <![LOG[Exiting with return code 0x80070005]LOG]!><time="14:38:55.807+240" date="05-09-2017" component="TSMBootstrap" context="" type="1" thread="500" file="tsmbootstrap.cpp:1266">
    <![LOG[Successfully finalized logs to SMS client log directory from C:\Users\ADMINI~1\AppData\Local\Temp]LOG]!><time="14:38:55.822+240" date="05-09-2017" component="TSMBootstrap" context="" type="1" thread="500" file="tslogging.cpp:1911">

    The process seems to otherwise be successful; the PC is domain-joined and works just fine. The only thing the TS skips is a custom Run Command Line item that I have since removed (and the TS still fails).

    Has anyone seen this particular error before?
    Thanks in advance.

    Tuesday, May 9, 2017 8:07 PM

Answers

  • Alright, since it worked fine when the TS didn't join the PC to the domain, I figured it was something in that vein. The solution for me was to disable inheritance for the OU the imaged PCs were being automatically added to. After doing so the deployment worked fine.
    • Marked as answer by nathanrael Wednesday, May 10, 2017 4:39 PM
    Wednesday, May 10, 2017 3:59 PM

All replies

  • Without a link to actual logs there is not really anyway to know the context.  Please post a URL link to something like OneDrive (even if you aren't verified you can still post the URL text)

    Many questions such as where do I find logs and what logs are interesting are found in: MDT TechNet Forum - FAQ & Getting Started Guide Please take the time to read it. Also if you don't post logs your problem won't be easily solved.

    Tuesday, May 9, 2017 11:00 PM
  • Sorry about that. Here's the BDD.log file.

    https://pastebin.com/Q9pePJGL


    • Edited by nathanrael Wednesday, May 10, 2017 2:58 PM
    Wednesday, May 10, 2017 2:58 PM
  • Alright, since it worked fine when the TS didn't join the PC to the domain, I figured it was something in that vein. The solution for me was to disable inheritance for the OU the imaged PCs were being automatically added to. After doing so the deployment worked fine.
    • Marked as answer by nathanrael Wednesday, May 10, 2017 4:39 PM
    Wednesday, May 10, 2017 3:59 PM