Jump to content


anyweb

How can I sync the BIOS date in WinPE to avoid PXE boot failure with System Center 2012 R2 Configuration Manager ?

Recommended Posts

just rem out the

wscript.echo strCommand

lines and you won't see the above, to remove the CMD prompt use windowhide.exe available in MDT 2013

Share this post


Link to post
Share on other sites

Hi

 

We are deploying fysical servers with SCCM, and all the bios times are wrong.

 

I tried your script but i get error 5: access denied.

 

I guess it is a permissions error, but i use the administrator account of our domain.

 

net use \\SCCM\ipc$ mypassword /user:sccmtest.local\administrator & net time \\sccmtest.local /set /Y

 

Everything before the & works, i can see a client connectien to ipc$ on my domain.

 

but

net time \\sccmtest.local /set /Y won't work.

Share this post


Link to post
Share on other sites

hi anyweb.. i tried applying you fix but im still receiving error. here is my smsts.log file

 

<![LOG[LOGGING: Finalize process ID set to 788]LOG]!><time="09:32:22.065+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="792" file="tslogging.cpp:1495">
<![LOG[==============================[ TSBootShell.exe ]==============================]LOG]!><time="09:32:22.065+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="792" file="bootshell.cpp:1055">
<![LOG[succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="09:32:22.065+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="792" file="util.cpp:964">
<![LOG[Debug shell is enabled]LOG]!><time="09:32:22.065+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="792" file="bootshell.cpp:1066">
<![LOG[Waiting for PNP initialization...]LOG]!><time="09:32:22.080+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:60">
<![LOG[RAM Disk Boot Path: NET(0)\SMSIMAGES\DBS00005\BOOT.DBS00005.WIM]LOG]!><time="09:32:22.080+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="configpath.cpp:302">
<![LOG[booted from network (PXE)]LOG]!><time="09:32:22.080+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="configpath.cpp:317">
<![LOG[Network(PXE) path: X:\sms\data\]LOG]!><time="09:32:22.080+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="configpath.cpp:319">
<![LOG[Found config path X:\sms\data\]LOG]!><time="09:32:22.080+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:548">
<![LOG[This is not a fixed non usb disk]LOG]!><time="09:32:22.080+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="diskutils.cpp:1694">
<![LOG[booting from removable media, not restoring bootloaders on hard drive]LOG]!><time="09:32:22.080+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:582">
<![LOG[X:\sms\data\WinPE does not exist.]LOG]!><time="09:32:22.080+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:599">
<![LOG[X:\_SmsTsWinPE\WinPE does not exist.]LOG]!><time="09:32:22.080+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:613">
<![LOG[Executing command line: wpeinit.exe -winpe]LOG]!><time="09:32:22.096+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:860">
<![LOG[The command completed successfully.]LOG]!><time="09:32:29.180+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:942">
<![LOG[starting DNS client service.]LOG]!><time="09:32:29.180+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:666">
<![LOG[Executing command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="09:32:29.693+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:860">
<![LOG[The command completed successfully.]LOG]!><time="09:32:29.693+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:942">
<![LOG[==============================[ TSMBootStrap.exe ]==============================]LOG]!><time="09:32:29.740+480" date="05-08-2015" component="TSMBootstrap" context="" type="1" thread="944" file="tsmbootstrap.cpp:1165">
<![LOG[Command line: X:\sms\bin\x64\TsmBootstrap.exe /env:WinPE /configpath:X:\sms\data\]LOG]!><time="09:32:29.740+480" date="05-08-2015" component="TSMBootstrap" context="" type="0" thread="944" file="tsmbootstrap.cpp:1166">
<![LOG[succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="09:32:29.740+480" date="05-08-2015" component="TSMBootstrap" context="" type="1" thread="944" file="util.cpp:964">
<![LOG[succeeded loading resource DLL 'X:\sms\bin\x64\TSRESNLC.DLL']LOG]!><time="09:32:29.740+480" date="05-08-2015" component="TSMBootstrap" context="" type="1" thread="944" file="resourceutils.cpp:169">
<![LOG[Current OS version is 6.2.9200.0]LOG]!><time="09:32:29.740+480" date="05-08-2015" component="TSMBootstrap" context="" type="1" thread="944" file="util.cpp:3094">
<![LOG[Adding SMS bin folder "X:\sms\bin\x64" to the system environment PATH]LOG]!><time="09:32:29.756+480" date="05-08-2015" component="TSMBootstrap" context="" type="0" thread="944" file="tsmbootstrap.cpp:963">
<![LOG[PXE Boot with Root = X:\]LOG]!><time="09:32:29.756+480" date="05-08-2015" component="TSMBootstrap" context="" type="1" thread="944" file="tsmbootstrap.cpp:1062">
<![LOG[Executing from PXE in WinPE]LOG]!><time="09:32:29.756+480" date="05-08-2015" component="TSMBootstrap" context="" type="1" thread="944" file="tsmbootstrap.cpp:1077">
<![LOG[Loading TsPxe.dll from X:\sms\bin\x64\TsPxe.dll]LOG]!><time="09:32:29.756+480" date="05-08-2015" component="TSMBootstrap" context="" type="0" thread="944" file="tsmbootstraputil.cpp:1363">
<![LOG[TsPxe.dll loaded]LOG]!><time="09:32:29.756+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmbootstraputil.cpp:1373">
<![LOG[Device has PXE booted]LOG]!><time="09:32:29.756+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tspxe.cpp:122">
<![LOG[Variable Path: \SMSTemp\2015.05.08.09.34.11.0001.{66CA1017-9A7C-45AE-8FC6-5FD5DC495EC9}.boot.var]LOG]!><time="09:32:29.756+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tspxe.cpp:134">
<![LOG[succesfully added firewall rule for Tftp]LOG]!><time="09:32:29.756+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="fwopen.cpp:123">
<![LOG[Executing: X:\sms\bin\x64\smstftp.exe -i 192.168.202.199 get \SMSTemp\2015.05.08.09.34.11.0001.{66CA1017-9A7C-45AE-8FC6-5FD5DC495EC9}.boot.var X:\sms\data\variables.dat]LOG]!><time="09:32:29.756+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tspxe.cpp:177">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="09:32:29.802+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="commandline.cpp:228">
<![LOG[set command line: "X:\sms\bin\x64\smstftp.exe" -i 192.168.202.199 get \SMSTemp\2015.05.08.09.34.11.0001.{66CA1017-9A7C-45AE-8FC6-5FD5DC495EC9}.boot.var X:\sms\data\variables.dat]LOG]!><time="09:32:29.802+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="commandline.cpp:731">
<![LOG[Executing command line: "X:\sms\bin\x64\smstftp.exe" -i 192.168.202.199 get \SMSTemp\2015.05.08.09.34.11.0001.{66CA1017-9A7C-45AE-8FC6-5FD5DC495EC9}.boot.var X:\sms\data\variables.dat]LOG]!><time="09:32:29.802+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="commandline.cpp:827">
<![LOG[Process completed with exit code 0]LOG]!><time="09:32:29.855+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="commandline.cpp:1123">
<![LOG[succesfully removed firewall rule for Tftp]LOG]!><time="09:32:29.855+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="fwopen.cpp:146">
<![LOG[successfully downloaded pxe variable file.]LOG]!><time="09:32:29.855+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tspxe.cpp:187">
<![LOG[we are booted using PXE]LOG]!><time="09:32:29.855+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsmediawizardcontrol.cpp:2671">
<![LOG[we are booted using PXE and we don't use a password or the password is provided by the user]LOG]!><time="09:32:29.855+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsmediawizardcontrol.cpp:2687">
<![LOG[Found network adapter "Realtek PCIe GBE Family Controller" with IP Address 192.168.202.209.]LOG]!><time="09:32:29.855+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmbootstraputil.cpp:517">
<![LOG[Run PXE Interactive]LOG]!><time="09:32:29.855+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediawizardcontrol.cpp:2822">
<![LOG[Running Wizard in Interactive mode]LOG]!><time="09:32:29.855+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsmediawizardcontrol.cpp:2824">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="09:32:29.870+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\qfe\nts\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="09:32:29.870+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" 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:\qfe\nts\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="09:32:29.870+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsremovablemedia.cpp:387">
<![LOG[Activating Welcome Page.]LOG]!><time="09:32:29.870+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediawelcomepage.cpp:131">
<![LOG[Loading bitmap]LOG]!><time="09:32:29.870+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsmbootstrap.cpp:1271">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediawelcomepage.cpp:340">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\qfe\nts\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" 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:\qfe\nts\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsremovablemedia.cpp:387">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsremovablemedia.cpp:322">
<![LOG[CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\qfe\nts\sms\framework\smscrypt\windes.cpp,165)]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" 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:\qfe\nts\sms\framework\tscore\tsremovablemedia.cpp,387)]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsremovablemedia.cpp:387">
<![LOG[Verifying media password.]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsmediawizardcontrol.cpp:271">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsremovablemedia.cpp:322">
<![LOG[spawned thread 540 to download policy.]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsmediawelcomepage.cpp:405">
<![LOG[Entering TSMediaWizardControl::GetPolicy.]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="tsmediawizardcontrol.cpp:527">
<![LOG[Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00350031004100300031003600420036002D0046003000440045002D0034003700350032002D0042003900370043002D003500340045003600460033003800360041003900310032007D00']LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="environmentscope.cpp:263">
<![LOG[Environment scope successfully created: Global\{51A016B6-F0DE-4752-B97C-54E6F386A912}]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="environmentscope.cpp:623">
<![LOG[Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00420041003300410033003900300030002D0043004100360044002D0034006100630031002D0038004300320038002D003500300037003300410046004300320032004200300033007D00']LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="environmentscope.cpp:263">
<![LOG[Environment scope successfully created: Global\{BA3A3900-CA6D-4ac1-8C28-5073AFC22B03}]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="environmentscope.cpp:623">
<![LOG[setting LogMaxSize to 1000000]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:555">
<![LOG[setting LogMaxHistory to 1]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:556">
<![LOG[setting LogLevel to 0]LOG]!><time="09:32:56.864+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:557">
<![LOG[setting LogEnabled to 1]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:558">
<![LOG[setting LogDebug to 1]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:559">
<![LOG[uEFI: false]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:569">
<![LOG[Loading variables from the Task Sequencing Removable Media.]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:584">
<![LOG[Loading Media Variables from "X:\sms\data\variables.dat"]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsremovablemedia.cpp:322">
<![LOG[succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="util.cpp:964">
<![LOG[setting SMSTSMP TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSMediaGuid TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSBootMediaPackageID TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSHTTPPort TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSHTTPSPort TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSIISSSLState TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSLaunchMode TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSMediaPFX TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSPublicRootKey TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSSiteCode TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSSiteSigningCertificate TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSUseFirstCert TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSx64UnknownMachineGUID TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[setting _SMSTSx86UnknownMachineGUID TS environment variable]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:604">
<![LOG[Root CA Public Certs=]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:615">
<![LOG[Missing root CA environment variable from variables file]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:621">
<![LOG[support Unknown Machines: 0]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:632">
<![LOG[Custom hook from X:\\TSConfig.INI is cscript.exe WinPE_TimeSync.vbs]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:675">
<![LOG[Custom hook source is SMS10000]LOG]!><time="09:32:56.880+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:692">
<![LOG[Finding package: C:\SMS\PKG\SMS10000]LOG]!><time="09:32:57.052+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="resolvesource.cpp:3106">
<![LOG[Finding package: X:\SMS\PKG\SMS10000]LOG]!><time="09:32:57.052+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="resolvesource.cpp:3106">
<![LOG[FindPackageFolder found: X:\SMS\PKG\SMS10000]LOG]!><time="09:32:57.052+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="resolvesource.cpp:3139">
<![LOG[using path: X:\SMS\PKG\SMS10000]LOG]!><time="09:32:57.052+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:467">
<![LOG[successfully registered Task Sequencing COM Interface.]LOG]!><time="09:32:57.052+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="environmentlib.cpp:821">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="09:32:57.052+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="commandline.cpp:228">
<![LOG[set command line: cscript.exe WinPE_TimeSync.vbs]LOG]!><time="09:32:57.052+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="commandline.cpp:731">
<![LOG[Executing command line: cscript.exe WinPE_TimeSync.vbs]LOG]!><time="09:32:57.052+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="commandline.cpp:827">
<![LOG[Process completed with exit code 0]LOG]!><time="09:33:23.980+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="commandline.cpp:1123">
<![LOG[succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="09:33:23.980+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="util.cpp:964">
<![LOG[successfully unregistered Task Sequencing Environment COM Interface.]LOG]!><time="09:33:23.980+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="environmentlib.cpp:910">
<![LOG[Authenticator from the environment is empty.]LOG]!><time="09:33:23.980+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:838">
<![LOG[Need to create Authenticator Info using PFX]LOG]!><time="09:33:23.980+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="tsmediawizardcontrol.cpp:850">
<![LOG[initialized CStringStream object with string: {A75166F2-2E5E-4EBE-B67C-01A941B21EBA};2015-05-08T17:33:23Z.]LOG]!><time="09:33:23.996+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="stringstream.cpp:101">
<![LOG[set media certificate in transport]LOG]!><time="09:33:24.012+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="libsmsmessaging.cpp:9401">
<![LOG[set authenticator in transport]LOG]!><time="09:33:24.012+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="libsmsmessaging.cpp:7734">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: DBSSCCMDC01.dbstest.local:80 GET /SMS_MP/.sms_aut?MPKEYINFORMATIONMEDIA]LOG]!><time="09:33:24.012+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="libsmsmessaging.cpp:8604">
<![LOG[Error. Received 0x80072ee7 from WinHttpSendRequest.]LOG]!><time="09:33:34.952+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="540" file="libsmsmessaging.cpp:8870">
<![LOG[unknown host (gethostbyname failed)]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="3" thread="540" file="libsmsmessaging.cpp:695">
<![LOG[hr, HRESULT=80072ee7 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,8919)]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="libsmsmessaging.cpp:8919">
<![LOG[sending with winhttp failed; 80072ee7]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="3" thread="540" file="libsmsmessaging.cpp:8919">
<![LOG[m_pHttpTransport->Send (0, 0, pServerReply, nReplySize), HRESULT=80072ee7 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,5159)]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="libsmsmessaging.cpp:5159">
<![LOG[MPKeyInformation.RequestMPKeyInformationForMedia(szTrustedRootKey), HRESULT=80072ee7 (e:\qfe\nts\sms\framework\osdmessaging\libsmsmessaging.cpp,9410)]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="libsmsmessaging.cpp:9410">
<![LOG[Failed to get information for MP: http://DBSSCCMDC01.dbstest.local. 80072ee7.]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="3" thread="540" file="tsmbootstraputil.cpp:1518">
<![LOG[sMP.length() > 0, HRESULT=80004005 (e:\qfe\nts\sms\client\tasksequence\tsmbootstrap\tsmbootstraputil.cpp,1526)]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="tsmbootstraputil.cpp:1526">
<![LOG[TSMBootstrapUtil::SelectMP ( sSMSTSMP.c_str(), sMediaPfx.c_str(), sMediaGuid.c_str(), sAuthenticator.c_str(), sEnterpriseCert.c_str(), sServerCerts.c_str(), nHttpPort, nHttpsPort, bUseCRL, sSiteCode, sAssignedSiteCode, sMP, sCertificates, sX86UnknownMachineGUID, sX64UnknownMachineGUID), HRESULT=80004005 (e:\qfe\nts\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,907)]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="tsmediawizardcontrol.cpp:907">
<![LOG[Exiting TSMediaWizardControl::GetPolicy.]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="tsmediawizardcontrol.cpp:1420">
<![LOG[pWelcomePage->m_pTSMediaWizardControl->GetPolicy(), HRESULT=80004005 (e:\qfe\nts\sms\client\tasksequence\tsmbootstrap\tsmediawelcomepage.cpp,303)]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="540" file="tsmediawelcomepage.cpp:303">
<![LOG[setting wizard error: An error occurred while retrieving policy for this computer (0x80004005). For more information, contact your system administrator or helpdesk operator.]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediawizardcontrol.cpp:1589">
<![LOG[WelcomePage::OnWizardNext()]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediawelcomepage.cpp:340">
<![LOG[skipping Confirmation Page.]LOG]!><time="09:33:46.738+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediaconfirmationpage.cpp:170">
<![LOG[skipping Task Sequence Selection Page.]LOG]!><time="09:33:46.753+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediataskselectionpage.cpp:118">
<![LOG[skipping Variables Selection Page.]LOG]!><time="09:33:46.753+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediavariablesselectionpage.cpp:155">
<![LOG[skipping Resolve Progress Page.]LOG]!><time="09:33:46.753+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediaresolveprogresspage.cpp:96">
<![LOG[Activating Finish Page.]LOG]!><time="09:33:46.753+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediafinishpage.cpp:107">
<![LOG[initializing the countdown timer.]LOG]!><time="09:33:46.753+480" date="05-08-2015" component="TSPxe" context="" type="0" thread="944" file="tsmediafinishpage.cpp:197">
<![LOG[Loading bitmap]LOG]!><time="09:33:46.753+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsmbootstrap.cpp:1271">
<![LOG[Exiting task sequence wizard.]LOG]!><time="09:34:01.834+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsmediawizardcontrol.cpp:2386">
<![LOG[Exiting with return code 0x00000000]LOG]!><time="09:34:01.834+480" date="05-08-2015" component="TSPxe" context="" type="1" thread="944" file="tsmbootstrap.cpp:1238">
<![LOG[Execution complete.]LOG]!><time="09:34:01.834+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:693">
<![LOG[hMap != 0, HRESULT=80070002 (e:\qfe\nts\sms\framework\tscore\environmentscope.cpp,493)]LOG]!><time="09:34:01.834+480" date="05-08-2015" component="TSBootShell" context="" type="0" thread="796" file="environmentscope.cpp:493">
<![LOG[m_pGlobalScope->open(), HRESULT=80070002 (e:\qfe\nts\sms\framework\tscore\environmentlib.cpp,335)]LOG]!><time="09:34:01.834+480" date="05-08-2015" component="TSBootShell" context="" type="0" thread="796" file="environmentlib.cpp:335">
<![LOG[this->open(), HRESULT=80070002 (e:\qfe\nts\sms\framework\tscore\environmentlib.cpp,553)]LOG]!><time="09:34:01.850+480" date="05-08-2015" component="TSBootShell" context="" type="0" thread="796" file="environmentlib.cpp:553">
<![LOG[::RegOpenKeyExW (HKEY_LOCAL_MACHINE, sKey.c_str(), 0, KEY_READ, &hSubKey), HRESULT=80070002 (e:\qfe\nts\sms\framework\tscore\utils.cpp,809)]LOG]!><time="09:34:01.850+480" date="05-08-2015" component="TSBootShell" context="" type="0" thread="796" file="utils.cpp:809">
<![LOG[RegOpenKeyExW is unsuccessful for Software\Microsoft\SMS\Task Sequence]LOG]!><time="09:34:01.850+480" date="05-08-2015" component="TSBootShell" context="" type="2" thread="796" file="utils.cpp:809">
<![LOG[GetTsRegValue() is unsuccessful. 0x80070002.]LOG]!><time="09:34:01.850+480" date="05-08-2015" component="TSBootShell" context="" type="2" thread="796" file="utils.cpp:842">
<![LOG[End program: ]LOG]!><time="09:34:01.850+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="bootshell.cpp:725">
<![LOG[Finalizing logging from process 788]LOG]!><time="09:34:01.850+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="tslogging.cpp:1741">
<![LOG[Finalizing logs to root of first available drive]LOG]!><time="09:34:01.850+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="tslogging.cpp:1583">
<![LOG[successfully finalized logs to C:\SMSTSLog]LOG]!><time="09:34:01.881+480" date="05-08-2015" component="TSBootShell" context="" type="1" thread="796" file="tslogging.cpp:1640">
<![LOG[Cleaning up task sequencing logging configuration.]LOG]!><time="09:34:01.881+480" date="05-08-2015" component="TSBootShell" context="" type="0" thread="796" file="tslogging.cpp:584">

Share this post


Link to post
Share on other sites

Hi all,

 

i have found a solution without need domain credentials. If you have SCCM2012 with WinPE 5.0 or above, windows time service is integreted in WinPE. Follow the steps to configure time service:

1. Mount your WinPE

2. Copy w32tm.exe from a running operating system to Windows\system32 in your WinPE

3. Copy w32t.exe.mui from a running operating system to Windows\system32\en-US in your WinPE

4. Modify time service registry settings in WinPE. Load

 

[HKEY_LOCAL_MACHINE\WinPE\ControlSet001\Services\W32Time\Config]
"MaxPosPhaseCorrection"=dword:ffffffff
"MaxNegPhaseCorrection"=dword:ffffffff

 

5. if you want to have correct time, modiffy timezone settings in WinPE:

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\WinPE\ControlSet001\Control\TimeZoneInformation]
"DaylightBias"=dword:ffffffc4
"DaylightName"="@tzres.dll,-321"
"StandardStart"=hex:00,00,0a,00,05,00,03,00,00,00,00,00,00,00,00,00
"StandardBias"=dword:00000000
"StandardName"="@tzres.dll,-322"
"Bias"=dword:ffffffc4
"DaylightStart"=hex:00,00,03,00,05,00,02,00,00,00,00,00,00,00,00,00
"TimeZoneKeyName"="W. Europe Standard Time"
"DynamicDaylightTimeDisabled"=dword:00000000

6. Unmount your WinPE

7. Create a script (Batch, Powershell, VBScript) with following commands:

net.exe start w32time

w32tm.exe /config /manualpeerlist:yourntpserver /syncfromflags:MANUAL /update

net.exe stop w32time

net.exe start w32time

Wait for 20 seconds

8. configure your script as prestaged command

 

Thats it ! :):)

  • Like 1

Share this post


Link to post
Share on other sites

I was just about to publish something similar, however i'll edit my script and provide the alternative solution also. thanks

Share this post


Link to post
Share on other sites

First off, great work with all of this. Got me very far! I would like to use this not only in my location, but also across our multi time zone environment. Instead of hard-coding the time server in (which would just be my local DC here in the East), could you configure this script to pull the local DC name and then use that return value as the strServer? That way, machines out in Pacific and Central will pull the time from the the DC at their location.

 

Cheers!

Edited by jmo55

Share this post


Link to post
Share on other sites

First off, great work with all of this. Got me very far! I would like to use this not only in my location, but also across our multi time zone environment. Instead of hard-coding the time server in (which would just be my local DC here in the East), could you configure this script to pull the local DC name and then use that return value as the strServer? That way, machines out in Pacific and Central will pull the time from the the DC at their location.

 

Cheers!

 

yes you could edit the script to pull values based on for example the default gateway

Share this post


Link to post
Share on other sites

Hello All,

I need to add this script to Boot images, but there is a problem. i am using old winpe boot files to support xp migration so there is no Customization tab for boot images. how can i add prestart commands and files directly to boot media?

 

you'd have to mount the boot image using dism and then copy the files back in before committing the changes and then copy the edited boot.wim back to configmgr's source, before updating to your dp's

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.