Jump to content


anyweb

using System Center 2012 Configuration Manager - Part 7. Build and Capture Windows 7 X64 SP1

Recommended Posts

locate the smspxe.log on your server hosting the pxe role on the dp, and search for the MAC address of the computer that you are pxe booting, does it reveal anything for yo

Share this post


Link to post
Share on other sites


Hi,

 

These guides are a huge lifesaver so thanks for this, although I have a question.

 

I was wondering whether there's any information on deploying a build and capture TS that also installs applications and drivers? I tried to do this by adding apps and drivers in the TS but although the base image of Windows 7 installed fine, none of the drivers or apps I applied to the TS were installed, and I know these definitely work as I've test deployed them. Do you need to deploy the apps and drivers individually to the collection containing your test B+C machine too?

Perhaps someone could point me in the direction of the best log to view regarding B+C please?

 

Thanks a million

Share this post


Link to post
Share on other sites

you shouldn't be installing drivers in a build and capture task sequence as you should be using virtual hardware (driver agnostic) for the build and capture process,

save the driver installation for the Deploy task sequence, and that is covered here many times. The log to look at when troubleshooting anything OSD related is smsts.log or smsts*.log

 

cheers

niall

Share this post


Link to post
Share on other sites

I have set this up step by step and everything is working now... except Capturing the image.

 

It boots back up and waits at the login screen but no capture takes place. I have seen you keep re-posting about the smsts.log and I have troubleshot all other issues from there, but now I don't see the _SMSTaskSequence directory anymore.

 

Here is the only thing I think I have different, from this image below do I need to enter:

SMSMP=SiteCode.ServerName.FQDN

or

SMSMP=ServerName.FQDN

 

post-8369-0-68478200-1375128450_thumb.jpg

 

 

Thank you in advance.

Share this post


Link to post
Share on other sites

Ok, scratch my last. I would created a new client package and looks like everything works. Was able to capture my image as well.

 

Still would like to know more about the SMSMP if you get a chance, I will still try to google and find more as well.

 

Also I am still getting these errors in SMSTS.log - 401 - Authentication failure on request with anonymous access, retrying with context credentials. ApplyOperatingSystem

-----------------------------------------------------------------------------------------------------
From the SMSTS.log
Downloaded file from http://Server.FQDN.local:443/NOCERT_SMS_DP_SMSPKG$/MVH0004D/sccm?/autorun.inf to C:\_SMSTaskSequence\Packages\MVH0004D\autorun.inf  ApplyOperatingSystem 7/30/2013 7:10:23 AM 1504 (0x05E0)
401 - Authentication failure on request with anonymous access, retrying with context credentials. ApplyOperatingSystem 7/30/2013 7:10:23 AM 1504 (0x05E0)
401 - Authentication failure on request with context credentials, retrying with supplied credentials. ApplyOperatingSystem 7/30/2013 7:10:23 AM 1504 (0x05E0)
-----------------------------------------------------------------------------------------------------
MVH0004D is my Apply Operating System Task

Share this post


Link to post
Share on other sites

I'm at a serious loss here. I've been trying to get the Build & Capture tasks to work. After hitting a few roadbumps I finally managed to get to the capturing part.

 

When it starts the capture I get an error that says:

Task Sequence: Build and Capture - Windows 7 x64 NL has failed with the error code 0x80070056

 

I've setup a Network Access Account and the folder where the WIM needs to go is writable by this account.

The client is a physical device, I had to deploy a network driver for it to connect in a decent way but it has an IP prior to starting the capture TS.

The client can ping the hostname of the SCCM server.

For the sake of testing I've made the folder where the WIM needs to go writable by "Everyone".

 

No luck.

Any ideas as to what is going wrong?

smsts.log

Share this post


Link to post
Share on other sites

you should create your image on virtual hardware, it's much more predictable and can be deployed to any hardware you want,

your error is this

 

 

<![LOG[Error. Received 0x80072ee7 from WinHttpSendRequest.]LOG]!><time="10:58:54.281-120" date="08-29-2013" component="TSManager" context="" type="1" thread="1692" file="libsmsmessaging.cpp:8887">
<![LOG[invalid server address (unknown host, and cannot be converted to inet address)]LOG]!><time="10:58:54.281-120" date="08-29-2013" component="TSManager" context="" type="3" thread="1692" file="libsmsmessaging.cpp:691">
<![LOG[hr, HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\osdmessaging\libsmsmessaging.cpp,8936)]LOG]!><time="10:58:54.281-120" date="08-29-2013" component="TSManager" context="" type="0" thread="1692" file="libsmsmessaging.cpp:8936">
<![LOG[sending with winhttp failed; 80072ee7]LOG]!><time="10:58:54.281-120" date="08-29-2013" component="TSManager" context="" type="3" thread="1692" file="libsmsmessaging.cpp:8936">
<![LOG[Will retry in 5 second(s)]LOG]!><time="10:58:54.281-120" date="08-29-2013" component="TSManager" context="" type="2" thread="1692" file="libsmsmessaging.cpp:1835">
<![LOG[Retrying...]LOG]!><time="10:58:59.897-120" date="08-29-2013" component="TSManager" context="" type="2" thread="1692" file="libsmsmessaging.cpp:1839">

 

which is a network related problem, more than likely it drops the ip address or doesnt get one at all after sysprep so if you choose to stay with real hardware are you loading any network drivers before the setup windows and configmgr step ?

Share this post


Link to post
Share on other sites

I've uploaded the relevant driver to my server. Created a driver package and distributed it.

Referenced the driver in the boot x64 image. The hardware is getting an IP.

 

The reason I'm working with a physical device was that this is going to be our new hardware for a while to come. I figured I'd create on there, because that's what we'll be using. However, if there are no downsides to creating the image on a VM I'd be happy to give that a whirl.

 

Let me cook up a VM :-)

Share this post


Link to post
Share on other sites

Wonderfull. The VMWare capture did the trick.

 

Where would I go looking on how to customize this image with drivers for our hardware, and setting regional stuff like keyboard layouts etc?

 

Or should I have done this in the build/capture image?

Share this post


Link to post
Share on other sites

Hi, I'm QUITE new to this set of tools, my company just purchased SC2012 and I've been going through your EXTREMELY HELPFUL blog posts. Thank you by the way!

 

I have a problem, I was reading this particular article, and I was under the impression that "Capture Win7" meant that I would build a win 7 to my companies spec's and then run this task and it would CAPTURE the image for me to deploy to other systems. However, when I ran through this, it wiped out and created a new image on the (freshly built) VM i set up to company specs..

 

So my question is:

 

How do I use SC2012 to grab my image for future deployments? (or have I just not read far enough along your blog posts?)

Share this post


Link to post
Share on other sites

Continuing in this great blog series I arrived to what seems the holy grail to me: deploying an image

 

I use a VMware machone to PXE boot and this goed great, the boot image gets offered win PE starts and after waiting a while the SCCM intro screen even appears, but then the windows gets prepared and the network settings are set the VMware machine reboots please advice

 

I read in the blog i need to add drivers to the bootimage for the standard VMware ethernetcard, can some explain how I do that

Share this post


Link to post
Share on other sites

enable cmd support and press F8 prior to it bombing out, then grab the smsts.log file located in x:\windows\temp\smstslog\smsts.log

 

post it here

 

to add drivers to your boot image simply right click the boot image attached to your task sequence, select the drivers tab then add a driver by clicking on the yellow star... point to the required driver and continue through the wizard, only add NETwork drivers that you actually need by verifiying if lack of network (ipconfig is a good test) is actually your problem.

 

drivers in boot wim.png

Share this post


Link to post
Share on other sites

at first it looks like the network is ok

 

<![LOG[Found network adapter "Intel® PRO/1000 MT Network Connection" with IP Address 192.168.1.146.]LOG]!><time="19:39:10.825+480" date="11

 

but then theres loads of dns failures like this

 

<![LOG[unknown host (gethostbyname failed)]LOG]!><time="19:39:11.870+480" date="11-11-2013" component="TSPxe" context="" type="3" thread="808" file="libsmsmessaging.cpp:692">
<![LOG[hr, HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\osdmessaging\libsmsmessaging.cpp,8738)]LOG]!><time="19:39:11.870+480" date="11-11-2013" component="TSPxe" context="" type="0" thread="808" file="libsmsmessaging.cpp:8738">
<![LOG[sending with winhttp failed; 80072ee7]LOG]!><time="19:39:11.870+480" date="11-11-2013" component="TSPxe" context="" type="3" thread="808" file="libsmsmessaging.cpp:8738">
<![LOG[m_pHttpTransport->Send (0, 0, pServerReply, nReplySize), HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\osdmessaging\libsmsmessaging.cpp,5151)]LOG]!><time="19:39:11.870+480" date="11-11-2013" component="TSPxe" context="" type="0" thread="808" file="libsmsmessaging.cpp:5151">
<![LOG[MPKeyInformation.RequestMPKeyInformation(szTrustedRootKey), HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\osdmessaging\libsmsmessaging.cpp,9229)]LOG]!><time="19:39:11.870+480" date="11-11-2013" component="TSPxe" context="" type="0" thread="808" file="libsmsmessaging.cpp:9229">
<![LOG[Failed to get information for MP: http://P01.SERVER2008R2.local. 80072ee7.]LOG]!><time="19:39:11.870+480" date="11-11-2013" component="TSPxe" context="" type="3" thread="808" file="tsmbootstraputil.cpp:1429">
<![LOG[sMP.length() > 0, HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmbootstraputil.cpp,1437)]LOG]!><time="19:39:11.870+480" date="11-11-2013" component="TSPxe" context="" type="0" thread="808" file="tsmbootstraputil.cpp:1437">
<![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:\nts_sccm_release\sms\client\tasksequence\tsmbootstrap\tsmediawizardcontrol.cpp,871)]LOG]!><time="19:39:11.870+480" date="11-11-2013" component="TSPxe" context="" type="0" thread="808" file="tsmediawizardcontrol.cpp:871">
<![LOG[Exiting TSMediaWizardControl::GetPolicy.]LOG]!><time="19:39:11.870+480" date="11-11-2013" component="TSPxe" context="" type="0" thr

 

so either you have DNS issues or its dropping the ip address, can you ping the FQDN of your mp after it fails ?

Share this post


Link to post
Share on other sites

Behold :| the Holy Grail ! I found out I hadn't set a DNS server address in my router for DHCP, changed this and everything goes as suspected, win7 got installed and I found a nice WIM file in de share where it was expected, Thank you for your analyses and for pointing me in the right direction

Share this post


Link to post
Share on other sites

I'm going to take a chane by posting it, although it isn't relevant - it sort of is...

 

I've followed this post (excellent!) and configured my build and cap which is working fine if I don't deploy applications.

 

I know you state you don't do this until later in the series but I'd like to deploy Office 2013 and capture it in my reference build to try and keep the overall subsequent client build time down.

 

If I disable the app or "continue on error" it works but I'm getting the following error every time (see attached image). I've specified my SMSMP in the conifg manager installation properties as I'm aware this machine is currently in a workgroup - makes sense - but unfortunatly this didn't work.

 

I know I can install Office as a package instead but I'm a stickler for making things work as they should, so my SCCM OCD wants this to work properly.

 

Any ideas anyone?

 

Rgds

 

Chris.

 

 

post-9176-0-10227900-1387374971_thumb.jpg

Share this post


Link to post
Share on other sites

can you attach the smsts.log

Share this post


Link to post
Share on other sites

Hello Niall,

 

Thank you for this nice blog about SCCM 2012 whereas at the moment i have used your guide to deploy a SCCM 2012 R2 CAS and 2 Primary site servers. After the PXE blog you highlighted that an upcoming blog was about how to capture a customized image whereas i could not find it as the blog stopped after the monthly update cycle.

 

have you posted this blog somewhere else and could you post a link to it as after a successful install of Windows 2012 R2 i would like to customize it based on the standard building block design i created for another tutorial and use this to deploy new instances required. In the process had a nice crash of my VMware environment (5.5) as it seems that there is a know bug in VMware when imaging with Windows 2012 R2 PXE; in this case governed by SCCM.

 

Regards,

 

Martin

Share this post


Link to post
Share on other sites

can you attach the smsts.log

 

Hi Niall,

 

Of course - log now attached...

 

Thanks in advance... I've just broken the wall I was banging my head against...

 

Incidentally I've been trying to take a step back from the fact that the App won't install during OSD - more to the point it won't install when the client is in a workgroup. I've tried deploying the App to a domain joined client and it works fine. I can't help thinking it's permissions/communication with the MP.

 

I've added a step to my B&C TS specifying a TS Variable of SMSMP and the value of <our MP FQDN> - I was quite hopeful that this would sort it but when I got to my desk this AM I saw that the VM had failed (my reference machine is on HyperV)...

 

Just going to try and fix the wall...

smsts.log

smsts-20131218-161321.log

Share this post


Link to post
Share on other sites

here's your problem

 

<![LOG[Failed to run the action: Install Microsoft Office 2013 ProPlus.
Download failed (
Error: 87D00267; Source: CCM)]LOG]!><time="16:13:50.800+00" date="12-18-2013" component="TSManager" context="" type="3" thread="3036" file="instruction.cxx:895">

is it on the dp ? are you specifying any MP in the setup windows and configmgr step ?

Share this post


Link to post
Share on other sites

here's your problem

 

<![LOG[Failed to run the action: Install Microsoft Office 2013 ProPlus.

Download failed (Error: 87D00267; Source: CCM)]LOG]!><time="16:13:50.800+00" date="12-18-2013" component="TSManager" context="" type="3" thread="3036" file="instruction.cxx:895">

 

is it on the dp ? are you specifying any MP in the setup windows and configmgr step ?

Hi Niall,

 

Yes and Yes - It's on our DP and I've checked and validated and removed and re-distributed.... And I'm specifying the MP in the TS as I mentioned above SMSMP=<FQDNofDP>

Share this post


Link to post
Share on other sites

Hi, I have a problem with step 5. when trying to add operating system installer package.

 

When I try to select path to operating system files I get error: "the specified path does not contain a valid operating system or you don't have permission to access it. Specify a valid path."

 

I have windows 7 64bit sp1 source files extracted locally from ISO and have full permission to the folder.

 

Has anyone seen this before, help is greatly appreciated

 

thanks

ht

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...