SCCM 2012 R2 PXE Issue to Hyper-V VM

Advertise task sequence to machine, and successfully boot into Windows PE 5.0.  But for some reason when I enter my PXE password it errors out saying "An error occurred while retrieving policy for this computer (0x800705AF)".  When I open the CMTRACE utility and open the SMSTS.log file in x:\windows\temp\smstslog folder, the two errors prior to the GUI post are -

Failed to create shared environment)

and

Failed to create the Shared Environment object. Code (80x800705AF). 

I've confirmed network connectivity by using the F8 command window.  Here is my SMSTS log file.  Any help is appreciated.

Oh.... here is the best part... the task sequence works fine when deploying to a physical machine!  Hyper-V storage drivers maybe?  Yes... before anyone asks, I am using a legacy NIC on the VM and I'm on a subnet that is setup in SCCM boundaries. 

Help!

<![LOG[LOGGING: Finalize process ID set to 668]LOG]!><time="07:26:37.697+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="672" file="tslogging.cpp:1495">
<![LOG[==============================[ TSBootShell.exe ]==============================]LOG]!><time="07:26:37.697+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="672" file="bootshell.cpp:1055">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="07:26:37.697+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="672" file="util.cpp:964">
<![LOG[Debug shell is enabled]LOG]!><time="07:26:37.697+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="672" file="bootshell.cpp:1066">
<![LOG[Waiting for PNP initialization...]LOG]!><time="07:26:37.822+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="bootshell.cpp:60">
<![LOG[RAM Disk Boot Path: NET(0)\SMSIMAGES\DEC0009C\WINPE.DEC0009C.WIM]LOG]!><time="07:26:37.822+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="configpath.cpp:302">
<![LOG[Booted from network (PXE)]LOG]!><time="07:26:37.822+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="configpath.cpp:317">
<![LOG[Network(PXE) path: X:\sms\data\]LOG]!><time="07:26:37.822+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="configpath.cpp:319">
<![LOG[Found config path X:\sms\data\]LOG]!><time="07:26:37.822+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="bootshell.cpp:548">
<![LOG[Booting from removable media, not restoring bootloaders on hard drive]LOG]!><time="07:26:37.822+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="bootshell.cpp:582">
<![LOG[X:\sms\data\WinPE does not exist.]LOG]!><time="07:26:37.822+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="bootshell.cpp:599">
<![LOG[X:\_SmsTsWinPE\WinPE does not exist.]LOG]!><time="07:26:37.822+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="bootshell.cpp:613">
<![LOG[Executing command line: wpeinit.exe -winpe]LOG]!><time="07:26:39.074+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="bootshell.cpp:860">
<![LOG[The command completed successfully.]LOG]!><time="07:26:47.537+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="bootshell.cpp:942">
<![LOG[Starting DNS client service.]LOG]!><time="07:26:47.537+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="bootshell.cpp:666">
<![LOG[Executing command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="07:26:48.057+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="bootshell.cpp:860">
<![LOG[The command completed successfully.]LOG]!><time="07:26:48.057+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="684" file="bootshell.cpp:942">
<![LOG[==============================[ TSMBootStrap.exe ]==============================]LOG]!><time="07:26:48.213+480" date="10-28-2013" component="TSMBootstrap" context="" type="1" thread="784" file="tsmbootstrap.cpp:1165">
<![LOG[Command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="07:26:48.229+480" date="10-28-2013" component="TSMBootstrap" context="" type="0" thread="784" file="tsmbootstrap.cpp:1166">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="07:26:48.229+480" date="10-28-2013" component="TSMBootstrap" context="" type="1" thread="784" file="util.cpp:964">
<![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\TSRESNLC.DLL']LOG]!><time="07:26:48.229+480" date="10-28-2013" component="TSMBootstrap" context="" type="1" thread="784" file="resourceutils.cpp:169">
<![LOG[Current OS version is 6.2.9200.0]LOG]!><time="07:26:48.229+480" date="10-28-2013" component="TSMBootstrap" context="" type="1" thread="784" file="util.cpp:3094">
<![LOG[Adding SMS bin folder "X:\sms\bin\x64" to the system environment PATH]LOG]!><time="07:26:48.244+480" date="10-28-2013" component="TSMBootstrap" context="" type="0" thread="784" file="tsmbootstrap.cpp:963">
<![LOG[PXE Boot with Root = X:\]LOG]!><time="07:26:48.244+480" date="10-28-2013" component="TSMBootstrap" context="" type="1" thread="784" file="tsmbootstrap.cpp:1062">
<![LOG[Executing from PXE in WinPE]LOG]!><time="07:26:48.244+480" date="10-28-2013" component="TSMBootstrap" context="" type="1" thread="784" file="tsmbootstrap.cpp:1077">
<![LOG[Loading TsPxe.dll from X:\sms\bin\x64\TsPxe.dll]LOG]!><time="07:26:48.244+480" date="10-28-2013" component="TSMBootstrap" context="" type="0" thread="784" file="tsmbootstraputil.cpp:1363">
<![LOG[TsPxe.dll loaded]LOG]!><time="07:26:48.260+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmbootstraputil.cpp:1373">
<![LOG[Device has PXE booted]LOG]!><time="07:26:48.260+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tspxe.cpp:122">
<![LOG[Variable Path: \SMSTemp\2013.10.27.20.41.37.0004.{0358B04B-9030-4FBB-B966-F457DD016FF7}.boot.var]LOG]!><time="07:26:48.260+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tspxe.cpp:134">
<![LOG[Succesfully added firewall rule for Tftp]LOG]!><time="07:26:48.275+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="fwopen.cpp:123">
<![LOG[Executing: X:\sms\bin\x64\smstftp.exe -i 192.168.2.32 get \SMSTemp\2013.10.27.20.41.37.0004.{0358B04B-9030-4FBB-B966-F457DD016FF7}.boot.var X:\sms\data\variables.dat]LOG]!><time="07:26:48.275+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tspxe.cpp:177">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="07:26:48.416+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="commandline.cpp:228">
<![LOG[Set command line: "X:\sms\bin\x64\smstftp.exe" -i 192.168.2.32 get \SMSTemp\2013.10.27.20.41.37.0004.{0358B04B-9030-4FBB-B966-F457DD016FF7}.boot.var X:\sms\data\variables.dat]LOG]!><time="07:26:48.416+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="commandline.cpp:731">
<![LOG[Executing command line: "X:\sms\bin\x64\smstftp.exe" -i 192.168.2.32 get \SMSTemp\2013.10.27.20.41.37.0004.{0358B04B-9030-4FBB-B966-F457DD016FF7}.boot.var X:\sms\data\variables.dat]LOG]!><time="07:26:48.416+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="commandline.cpp:827">
<![LOG[Process completed with exit code 0]LOG]!><time="07:26:50.512+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="commandline.cpp:1123">
<![LOG[Succesfully removed firewall rule for Tftp]LOG]!><time="07:26:50.528+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="fwopen.cpp:146">
<![LOG[Successfully downloaded pxe variable file.]LOG]!><time="07:26:50.528+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tspxe.cpp:187">
<![LOG[we are booted using PXE]LOG]!><time="07:26:50.528+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsmediawizardcontrol.cpp:2673">
<![LOG[we are booted using PXE and we don't use a password or the password is provided by the user]LOG]!><time="07:26:50.528+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsmediawizardcontrol.cpp:2689">
<![LOG[Found network adapter "Intel 21140-Based PCI Fast Ethernet Adapter (Emulated)" with IP Address 192.168.2.65.]LOG]!><time="07:26:50.528+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmbootstraputil.cpp:517">
<![LOG[Run PXE Interactive]LOG]!><time="07:26:50.528+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediawizardcontrol.cpp:2824">
<![LOG[Running Wizard in Interactive mode]LOG]!><time="07:26:50.528+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsmediawizardcontrol.cpp:2826">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="07:26:50.559+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="07:26:50.575+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="07:26:50.575+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsremovablemedia.cpp:387">
<![LOG[Activating Welcome Page.]LOG]!><time="07:26:50.575+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediawelcomepage.cpp:131">
<![LOG[Loading bitmap]LOG]!><time="07:26:50.590+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsmbootstrap.cpp:1271">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="07:27:54.948+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediawelcomepage.cpp:340">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="07:27:54.948+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="07:27:54.948+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="07:27:54.948+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsremovablemedia.cpp:387">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="07:27:54.948+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="07:27:54.948+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="windes.cpp:165">
<![LOG[SMS::Crypto::DES::DecryptBuffer( (BYTE*)pszPassword, (DWORD)(wcslen(pszPassword)*sizeof(WCHAR)), encryptedBuffer.getBuffer(), (DWORD)encryptedBuffer.size(), pbDecryptedBuffer, dwDecryptedBufferSize ), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="07:27:54.948+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsremovablemedia.cpp:387">
<![LOG[Verifying media password.]LOG]!><time="07:27:54.948+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsmediawizardcontrol.cpp:271">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="07:27:54.948+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsremovablemedia.cpp:322">
<![LOG[Spawned thread 716 to download policy.]LOG]!><time="07:27:54.995+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsmediawelcomepage.cpp:405">
<![LOG[Entering TSMediaWizardControl::GetPolicy.]LOG]!><time="07:27:54.995+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="716" file="tsmediawizardcontrol.cpp:527">
<![LOG[hMap != NULL, HRESULT=800705af (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,573)]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="716" file="environmentscope.cpp:573">
<![LOG[Failed to create shared environment)]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="3" thread="716" file="environmentscope.cpp:573">
<![LOG[m_pGlobalScope->create(psa), HRESULT=800705af (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,222)]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="716" file="environmentlib.cpp:222">
<![LOG[TS::Environment::SharedEnvironment.create( NULL ), HRESULT=800705af (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,547)]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="716" file="tsmediawizardcontrol.cpp:547">
<![LOG[Failed to create the Shared Environment object. Code(0x800705AF)]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="3" thread="716" file="tsmediawizardcontrol.cpp:547">
<![LOG[Exiting TSMediaWizardControl::GetPolicy.]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="716" file="tsmediawizardcontrol.cpp:1419">
<![LOG[pWelcomePage->m_pTSMediaWizardControl->GetPolicy(), HRESULT=800705af (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawelcomepage.cpp,303)]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="716" file="tsmediawelcomepage.cpp:303">
<![LOG[Setting wizard error: An error occurred while retrieving policy for this computer  (0x800705AF). For more information, contact your system administrator or helpdesk operator.]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediawizardcontrol.cpp:1588">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediawelcomepage.cpp:340">
<![LOG[Skipping Confirmation Page.]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediaconfirmationpage.cpp:170">
<![LOG[Skipping Task Sequence Selection Page.]LOG]!><time="07:27:55.027+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediataskselectionpage.cpp:118">
<![LOG[Skipping Variables Selection Page.]LOG]!><time="07:27:55.027+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediavariablesselectionpage.cpp:155">
<![LOG[Skipping Resolve Progress Page.]LOG]!><time="07:27:55.027+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediaresolveprogresspage.cpp:96">
<![LOG[Activating Finish Page.]LOG]!><time="07:27:55.027+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediafinishpage.cpp:107">
<![LOG[Initializing the countdown timer.]LOG]!><time="07:27:55.027+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediafinishpage.cpp:197">
<![LOG[Loading bitmap]LOG]!><time="07:27:55.027+480" date="10-28-2013" component="TSPxe" context="" type="1" thread="784" file="tsmbootstrap.cpp:1271">
<![LOG[Executing command line: X:\WINDOWS\system32\cmd.exe /k]LOG]!><time="07:27:57.925+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="672" file="bootshell.cpp:860">
<![LOG[The command completed successfully.]LOG]!><time="07:27:57.925+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="672" file="bootshell.cpp:942">
<![LOG[Successfully launched command shell.]LOG]!><time="07:27:57.925+480" date="10-28-2013" component="TSBootShell" context="" type="1" thread="672" file="bootshell.cpp:432">

October 28th, 2013 12:37pm

<![LOG[Setting wizard error: An error occurred while retrieving policy for this computer  (0x800705AF). For more information, contact your system administrator or helpdesk operator.]LOG]!><time="07:27:55.011+480" date="10-28-2013" component="TSPxe" context="" type="0" thread="784" file="tsmediawizardcontrol.cpp:1588">

That error basically translates to "pagefile too small". Try increasing the RAM for the VM or scratchspace of the boot image.

Free Windows Admin Tool Kit Click here and download it now
October 28th, 2013 6:51pm

Thanks, it helped me in resolving the issue.
March 21st, 2014 9:05am

It also solved my problem, thanks Torsten
  • Proposed as answer by Paddy831 Thursday, February 19, 2015 12:14 PM
Free Windows Admin Tool Kit Click here and download it now
June 24th, 2014 5:59am

this was my fix for this issue as well! thank you. 
January 12th, 2015 6:05pm

Hello Torsten,

Thanks for the answer - Increasing the RAm for the VM has fixed the issue in my case.

Best regards,

Satyam Srivastava

Free Windows Admin Tool Kit Click here and download it now
July 1st, 2015 12:03am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics