Jump to content


Ayrt

Build and Capture Windows 8

Recommended Posts

Hey all,

 

So, after countless wasted hours, many, many Google searches, I have to concede and ask for help!

 

I am trying to do something that, to me, is very simple; that is to Build and Capture Windows 8 and subsequently deploy it. The problem I have is that Windows Updates make me want to hurt little kittens!

 

The basic problems are:

 

  • If I attempt to install updates during the B&C, the updates install, however, the machine reboots and doesn't resume the TS, so no sysprep / capture occurs.
  • If I don't do the updates as part of the B&C and do them in the deploy step, the updates (currently 67) download then I have a dialog that sits saying 'Downloading Updates 67/67' once they are all downloaded. It does this until the TS times out.
  • If I try offline servicing, it fails and breaks my WIM image.
  • If I try using DISM with the /Add-Package switch, it fails and DISM reports an image corruption.

The TS has gone through various guises and during another Google session, I read something from Niall where he recommended a restart machine in the TS after the 'Setup Windows and Config Mgr' step. So, I added a bunch of restarts in which still allow the TS to progress. It's only when the Windows Updates are installed that it buggers up.

 

It currently looks like this:

 

bc_ts.png

 

As you can see, I have been using the guides from this site to get things sorted.

 

I'm kind of broken now as I have no clue where to go from here. I checked the log files (attached) and think I found something near the bottom of the smsts.log file which I have highlighted in red. (I also changed the FQDN in the snippet below and attached log files)

 

<![LOG[installation of updates started]LOG]!><time="16:17:44.356-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="3056" file="installswupdate.cpp:204">
<![LOG[Waiting for installation job to complete]LOG]!><time="16:17:44.356-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="3056" file="installswupdate.cpp:1030">
<![LOG[Waiting for job status notification ...]LOG]!><time="16:18:44.359-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="3056" file="installswupdate.cpp:1049">
<I snipped 50 or so of the same lines out>

<![LOG[Waiting for job status notification ...]LOG]!><time="17:17:49.855-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="3056" file="installswupdate.cpp:1049">

<![LOG[NotifyComplete received]LOG]!><time="17:18:27.329-600" date="09-16-2013" component="InstallSWUpdates" context="" type="1" thread="3060" file="installswupdate.cpp:720">

<![LOG[Received job completion notification from Updates Deployment Agent ]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="3056" file="installswupdate.cpp:1080">

<![LOG[Reboot Required]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="3056" file="main.cpp:164">

<![LOG[setting TSEnv variable SMSTSRebootRequested=HD]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="3056" file="main.cpp:111">

<![LOG[setting TSEnv variable SMSTSRetryRequested=TRUE]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="3056" file="main.cpp:111">

<![LOG[installation is not yet complete, action needs to be re-run after reboot]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="3056" file="main.cpp:170">

<![LOG[setting TSEnv variable SMSTSInstallUpdateJobGUID=]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="3056" file="main.cpp:111">

<![LOG[Process completed with exit code 0]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="commandline.cpp:1123">

<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="instruction.cxx:3012">

<![LOG[successfully completed the action (Install Software Updates) with the exit win32 code 0]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="instruction.cxx:3038">

<![LOG[MP server http://my.fqdn.com. Ports 80,443. CRL=false.]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="utils.cpp:5300">

<![LOG[setting authenticator]LOG]!><time="17:18:27.519-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="utils.cpp:5322">

<![LOG[set authenticator in transport]LOG]!><time="17:18:27.534-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="libsmsmessaging.cpp:7751">

<![LOG[sending StatusMessage]LOG]!><time="17:18:27.534-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="libsmsmessaging.cpp:4025">

<![LOG[setting message signatures.]LOG]!><time="17:18:27.534-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="libsmsmessaging.cpp:1297">

<![LOG[setting the authenticator.]LOG]!><time="17:18:27.534-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="libsmsmessaging.cpp:1327">

<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: my.fqdn.com:80 CCM_POST /ccm_system/request]LOG]!><time="17:18:27.550-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="libsmsmessaging.cpp:8621">

<![LOG[Request was succesful.]LOG]!><time="17:18:27.581-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="libsmsmessaging.cpp:8956">

<![LOG[set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="17:18:27.581-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="executionenv.cxx:668">

<![LOG[set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="17:18:27.581-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="executionenv.cxx:668">

<![LOG[Clear local default environment]LOG]!><time="17:18:27.597-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="executionenv.cxx:807">

<![LOG[The action (Install Software Updates) requested a retry]LOG]!><time="17:18:27.597-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="engine.cxx:263">

<![LOG[Reboot to local harddisk]LOG]!><time="17:18:27.597-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="engine.cxx:458">

<![LOG[_OSDGinaIsConfigured variable set to TRUE]LOG]!><time="17:18:27.597-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="engine.cxx:537">

<![LOG[_SMSTSServiceStartType variable set to ]LOG]!><time="17:18:27.597-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="engine.cxx:549">

<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="17:18:27.597-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="commandline.cpp:228">

<![LOG[set command line: "bcdedit.exe"]LOG]!><time="17:18:27.597-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="commandline.cpp:731">

<![LOG[Executing command line: "bcdedit.exe"]LOG]!><time="17:18:27.597-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="commandline.cpp:827">

<![LOG[Process completed with exit code 0]LOG]!><time="17:18:27.676-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="commandline.cpp:1123">

<![LOG[Calling RebootSystem()]LOG]!><time="17:18:27.676-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="engine.cxx:570">

<![LOG[OSD type of task sequence. ignore the service window setting]LOG]!><time="17:18:27.676-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="engine.cxx:672">

<![LOG[updated security on object C:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca.]LOG]!><time="17:18:27.676-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="utils.cpp:1121">

<![LOG[updated security on object C:\_SMSTaskSequence.]LOG]!><time="17:18:27.676-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2328" file="utils.cpp:1121">

<![LOG[set a global environment variable _SMSTSNextInstructionPointer=17]LOG]!><time="17:18:27.676-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="executionenv.cxx:668">

<![LOG[set a TS execution environment variable _SMSTSNextInstructionPointer=17]LOG]!><time="17:18:27.676-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="executionenv.cxx:386">

<![LOG[set a global environment variable _SMSTSInstructionStackString=0 16]LOG]!><time="17:18:27.676-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="executionenv.cxx:668">

<![LOG[set a TS execution environment variable _SMSTSInstructionStackString=0 16]LOG]!><time="17:18:27.676-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="executionenv.cxx:414">

<![LOG[save the current environment block]LOG]!><time="17:18:27.676-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="executionenv.cxx:833">

<![LOG[Expand a string: %_SMSTSMDataPath%\Logs]LOG]!><time="17:18:27.692-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2328" file="executionenv.cxx:782">

 

Does the last red entry 'Reboot to local hardisk' mean anything?

 

Also, any advice with how to handle this? If I include no updates in the B&C, no updates in the deploy and let Windows Update post deploy, the updates install fine. However, I want the updates in my image - that's one of the purported benefits of this.

 

 

edit: I was just getting the log files ready for attachment and wanted to include the logs from the _SMSTaskSequence folder and also from %windir%\CCM\Logs folder. I just opened the larger smsts.log file from CCM\Logs and see the following little gems:

 

<![LOG[Failed to open WMI Namespace 'root\ccm\policy\defaultmachine\requestedconfig'. WMI Repository may be corrupted
A system shutdown is in progress. (Error: 8007045B; Source: Windows)]LOG]!><time="17:24:51.640-600" date="09-16-2013" component="InstallSWUpdate" context="" type="3" thread="264" file="utils.cpp:2505">
<![LOG[End TS policy compilation]LOG]!><time="17:24:51.640-600" date="09-16-2013" component="InstallSWUpdate" context="" type="0" thread="264" file="utils.cpp:2587">
<![LOG[TS::Utility::CompileXMLPolicy( c_szRequestedConfigNS, sPolicyID, sPolicyVersion, c_szPolicySource, sPolicyRuleID, sPolicyData ), HRESULT=8007045b (e:\nts_sccm_release\sms\client\osdeployment\installswupdate\installswupdate.cpp,626)]LOG]!><time="17:24:51.640-600" date="09-16-2013" component="InstallSWUpdate" context="" type="0" thread="264" file="installswupdate.cpp:626">
<![LOG[Failed to compile SUM policy, hr=0x8007045b]LOG]!><time="17:24:51.640-600" date="09-16-2013" component="InstallSWUpdate" context="" type="3" thread="264" file="installswupdate.cpp:626">
<![LOG[CompilePolicies(TS::EnvironmentVar::CIVersionInfoPolicy), HRESULT=8007045b (e:\nts_sccm_release\sms\client\osdeployment\installswupdate\installswupdate.cpp,921)]LOG]!><time="17:24:51.640-600" date="09-16-2013" component="InstallSWUpdate" context="" type="0" thread="264" file="installswupdate.cpp:921">
<![LOG[installUpdates(pInstallUpdate, tType, sJobID, sActiveRequestHandle), HRESULT=8007045b (e:\nts_sccm_release\sms\client\osdeployment\installswupdate\main.cpp,248)]LOG]!><time="17:24:51.640-600" date="09-16-2013" component="InstallSWUpdate" context="" type="0" thread="264" file="main.cpp:248">
<![LOG[setting TSEnv variable SMSTSInstallUpdateJobGUID=]LOG]!><time="17:24:51.640-600" date="09-16-2013" component="InstallSWUpdate" context="" type="1" thread="264" file="main.cpp:111">
<![LOG[Process(pInstallUpdate, tType), HRESULT=8007045b (e:\nts_sccm_release\sms\client\osdeployment\installswupdate\main.cpp,304)]LOG]!><time="17:24:51.640-600" date="09-16-2013" component="InstallSWUpdate" context="" type="0" thread="264" file="main.cpp:304">
<![LOG[Process completed with exit code 2147943515]LOG]!><time="17:24:52.172-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2480" file="commandline.cpp:1123">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="17:24:52.172-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2480" file="instruction.cxx:3012">
<![LOG[Failed to run the action: Install Software Updates.
A system shutdown is in progress. (Error: 8007045B; Source: Windows)]LOG]!><time="17:24:52.172-600" date="09-16-2013" component="TSManager" context="" type="3" thread="2480" file="instruction.cxx:3103">
<![LOG[MP server http://my.fqdn.com. Ports 80,443. CRL=false.]LOG]!><time="17:24:52.172-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2480" file="utils.cpp:5300">
<![LOG[setting authenticator]LOG]!><time="17:24:52.188-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2480" file="utils.cpp:5322">
<![LOG[set authenticator in transport]LOG]!><time="17:24:52.188-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="libsmsmessaging.cpp:7751">
<![LOG[spLocator->ConnectServer( BString(sNamespace), NULL, NULL, NULL, 0, NULL, pContext, NamespacePtr::operator &() ), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\core\ccmcore\wminamespace.cpp,292)]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="wminamespace.cpp:292">
<![LOG[Failed to open to WMI namespace '\\.\ROOT\CIMV2' (8007045b)]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="3" thread="2480" file="wminamespace.cpp:292">
<![LOG[spNamespace.Open (c_szCIMv2Namespace), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,4622)]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="utils.cpp:4622">
<![LOG[Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x8007045b)]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="3" thread="2480" file="utils.cpp:4622">
<![LOG[GetAuxiliaryInfo (sUnknown, sMACAddresses, sSMBIOS), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,5370)]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="utils.cpp:5370">
<![LOG[Non fatal error 0x8007045b in sending task sequence execution status message to MP]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="2" thread="2480" file="utils.cpp:5406">
<![LOG[set a global environment variable _SMSTSLastActionRetCode=-2147023781]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="executionenv.cxx:668">
<![LOG[set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="executionenv.cxx:668">
<![LOG[Clear local default environment]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="executionenv.cxx:807">
<![LOG[Let the parent group (Updates) decides whether to continue execution]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="instruction.cxx:3212">
<![LOG[Let the parent group (Build the Reference Machine) decide whether to continue execution]LOG]!><time="17:24:52.219-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="instruction.cxx:2462">
<![LOG[The execution of the group (Build the Reference Machine) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows)]LOG]!><time="17:24:52.250-600" date="09-16-2013" component="TSManager" context="" type="3" thread="2480" file="instruction.cxx:2425">
<![LOG[Failed to run the last action: Install Software Updates. Execution of task sequence failed.
A system shutdown is in progress. (Error: 8007045B; Source: Windows)]LOG]!><time="17:24:52.250-600" date="09-16-2013" component="TSManager" context="" type="3" thread="2480" file="engine.cxx:214">
<![LOG[MP server http://my.fqdn.com. Ports 80,443. CRL=false.]LOG]!><time="17:24:52.250-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2480" file="utils.cpp:5300">
<![LOG[setting authenticator]LOG]!><time="17:24:52.266-600" date="09-16-2013" component="TSManager" context="" type="1" thread="2480" file="utils.cpp:5322">
<![LOG[set authenticator in transport]LOG]!><time="17:24:52.266-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="libsmsmessaging.cpp:7751">
<![LOG[spLocator->ConnectServer( BString(sNamespace), NULL, NULL, NULL, 0, NULL, pContext, NamespacePtr::operator &() ), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\core\ccmcore\wminamespace.cpp,292)]LOG]!><time="17:24:52.266-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="wminamespace.cpp:292">
<![LOG[Failed to open to WMI namespace '\\.\ROOT\CIMV2' (8007045b)]LOG]!><time="17:24:52.266-600" date="09-16-2013" component="TSManager" context="" type="3" thread="2480" file="wminamespace.cpp:292">
<![LOG[spNamespace.Open (c_szCIMv2Namespace), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,4622)]LOG]!><time="17:24:52.266-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="utils.cpp:4622">
<![LOG[Failed to connect to WMI namespace \\.\ROOT\CIMV2 (Code 0x8007045b)]LOG]!><time="17:24:52.266-600" date="09-16-2013" component="TSManager" context="" type="3" thread="2480" file="utils.cpp:4622">
<![LOG[GetAuxiliaryInfo (sUnknown, sMACAddresses, sSMBIOS), HRESULT=8007045b (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,5370)]LOG]!><time="17:24:52.266-600" date="09-16-2013" component="TSManager" context="" type="0" thread="2480" file="utils.cpp:5370">
<![LOG[Non fatal error 0x8007045b in sending task sequence execution status message to MP]LOG]!><time="17:24:52.266-600" date="09-16-2013" component="TSManager" context="" type="2" thread="2480" file="utils.cpp:5406">

I still have no idea what it means nor how to resolve it. I just Google the '8007045B' error but nothing in there seems to be my smoking gun.

 

So, help still much appreciated.

 

Thanks!

CCMLogs-smsts.log

CCMLogs-smsts-20130916-172452.log

SMSTaskSequence-smsts.log

SMSTaskSequence-smsts-20130916-171827.log

Share this post


Link to post
Share on other sites

how does your setup windows and configmgr step look ? as the computer is in a workgroup you need to specify SMSMP=fqdn.of.your.mp for it to find the software updates

 

and secondly do any of the updates force the computer to restart, if so remove them from your Software update group

Share this post


Link to post
Share on other sites

Niall,

 

I do have the SMSMP in the config mgr setup step. I would imagine a lot of the updates require a restart as they are platform updates. Given the volume of them, is there an easy way to determine which require a restart? Would this also mean I would need to create another update group? Furthermore, doesn't this defeat the point of doing the updates? I'd rather hoped it would be as simple as the guides make it appear :)

 

I'll let you know how it goes !

Share this post


Link to post
Share on other sites

windowsupdate.log should tell you which update is forcing a restart, task sequences don't like being forced to restart

 

take a look at this post to see how you can get 'all' the updates in one task sequence

Share this post


Link to post
Share on other sites

Thanks Niall,

 

I already have Willemjan's page bookmarked and I have exactly his configuration in my deploy task sequence, which, as mentioned in my original post, fails. It downloads all the updates and sits there doing nothing until the TS times out.

 

I'll sit and trawl through windowsupdate.log now, but to be honest, it's leaving a bitter taste in my mouth! :)

 

thanks again for helping out, I'll try not to bite the hand that feeds me :D

Share this post


Link to post
Share on other sites

If you are having trouble with updates in SCCM then welcome to the club! :) , if you have the option get it done in MDT instead ;) OR use the MDT windows update features in the CM task sequence for BUild and Capture.

 

More info here.

http://scriptimus.wordpress.com/2012/03/22/mdt-2012-automating-updates-in-lite-touch-deployments/

Share this post


Link to post
Share on other sites

i've just done a build and capture of windows 7x64 with 145 updates and it went fine....slow but fine i would try with windows 8 only that windows 8.1 is out....

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.