Jump to content



anyweb

using SCCM 2012 RC in a LAB - Part 8. Deploying Windows 7 X64



Recommended Posts

anyweb    399

In Part 1 of this series we got our AD and SCCM servers ready, and then we installed System Center 2012 Configuration Manager as a standalone Primary site. In Part 2 we configured the SCCM server further by adding some Windows Server roles necessary for the following Configuration Manager 2012 functionality, Software Update Point (SUP) and Operating System Deployment. In Part 3 we configured the server further by Enabling Discovery methods and creating Boundary's and Boundary Groups. In Part 4 we configured Client Settings, Added roles and Distributed the Configmgr Client to our Computers within the LAB, then in Part 5 we enabled the Endpoint Protection Role and configured Endpoint Protection settings and targeted a collection called All Windows 7 Computers with these settings and policies. In Part 6 we configured our SUP further to Deploy software updates to our All Windows 7 Computers and Build Windows 7 X64 collections. In Part 7 we used the Build and Capture process to create our Base Windows 7 X64 wim image. In this part we'll use the captured image in our Deploy Windows 7 X64 task sequence and we'll set some User Device Affinity collection variables and use a USMT 4 package to migrate the users data using hardlinking.

 

 

Step 1. Create the USMT 4 package

 

Perform the following on your SCCM 2012 server as SMSadmin.

 

If you want to migrate data in a Deploy Task Sequence you'll need to have the USMT 4 package ready, so let's create it now so that we can access the necessary migration files in our Deploy Windows 7 X64 task sequence.

 

On your SCCM server in Windows Explorer, browse to C:\Program Files\Windows AIK\Tools\

 

Right click on the USMT folder and choose Copy,

 

copy usmt package.png

 

select your sources folder (mine is on D:\) and paste the USMT folder in sources\os so that it's path is sources\os\usmt

 

sources os usmt.png

 

In the ConfigMgr Console, select Software Library, Application Management, Packages, right click and choose Create Package.

 

create package.png

 

fill in the details about the package, call it USMT version 4 and point to the UNC path of our newly copied files, \\sccm\sources\os\usmt

 

this package contains source files.png

 

for Program Type select Do not create a program

 

do not create a program.png

 

Complete the Wizard

 

complete the wizard.png

 

 

 

Step 2. Distribute the USMT package to our Distribution Points

 

Select the USMT package and click on Distribute Content in the Ribbon

 

distribute content usmt.png

 

for Content Destination, click on Add, select Distribution point, select our DP,

 

add dp usmt.png

 

click through the rest of the wizard

 

usmt done.png

 

 

 

Step 3. Import the captured Windows 7 X64 wim file

 

Perform the following on your SCCM 2012 server as SMSadmin.

 

In the Software Library, Operating Systems section of the Configmgr console, click on Operating System Images, you'll note that it is empty because we havn't imported any images yet. Right click and choose Add Operating System Image

 

add operating system image.png

 

browse to the UNC of where we captured the image in Part 7 and select the captured wim file

 

eg: \\sccm\sources\os\captures\windows7x64.wim

 

add captured wim.png

 

fill in some details about the image

 

image details.png

 

click through the summary, progress to completion

 

completion.png

 

 

Step 4. Distribute the image to the Distribution points

 

Perform the following on your SCCM 2012 server as SMSadmin.

 

We now need to distribute our imported image to our distribution points. Select Our Windows 7 Enterprise X64 image and in the ribbon above click on Home and then Distribute Content

 

distribute content.png

 

when the Distribute Content Wizard appears, click next

 

distribute content next.png

 

to specify the destination, click on add and select distribution point

 

add dp.png

 

select our Distribution Point from the list

 

select our dp.png

 

the DP appears selected

 

dp selected.png

 

click next through summary/progress to completion

 

image added to dp.png

 

 

 

Step 5. Create the Deploy Task Sequence

 

Perform the following on your SCCM 2012 server as SMSadmin.

 

Now that we have added our captured operating system image to Configmgr, and distributed it to our dp's we want to create a Deploy Task sequence to Deploy the image. In Task Sequences, right click and choose Create Task Sequence.

 

create deploy task sequence.png

 

choose to Install an existing image package

 

Install an existing image package.png

 

fill in some details about the image and click browse and select the X86 boot image, click next to proceed

 

browse to x86 boot image.png

 

now select the Windows 7 image by clicking on browse and set an administrator password, uncheck Partition and format the target computer before installing the operating system if you want to use hardlinking for User state migration, otherwise files cannot be stored locally

 

install windows uncheck partition and format.png

 

for the Configure the Network step, we want to join the domain so click on browse beside join a domain

 

browse to select domain.png

 

and now we need to specify the user that has permissions to join the domain, i use the DomJoin user just or this task (create the user and delegate them enough permissions to add computers to the domain)

 

domjoin.png

 

I'm not specifying an OU in this step, you can, but don't select the Computers Container if you do...

 

configure the network step.png

 

for the Install the Configuration Manager client step click on browse and select the client package from defintion we created in the last part

 

install the configuration manager client.png

 

click next and for State Migration, select our USMT 4 package

 

usmt 4 package.png

 

change the setting to Save user settings Locally (this will mean we can use Hard Links)

 

save user settings locally.png

 

for Include Updates select All Software Updates

 

all software updates.png

 

and click next through to completion (we are not installing any applications at this point).

 

ts completion.png

 

 

 

Step 6. Create a Deploy Windows 7 X64 collection

 

Perform the following on your SCCM 2012 server as SMSadmin.

 

In the ConfigMgr console, click on Assets and Compliance, select Device Collections, click on Create Device Collection in the Ribbon

 

create device collection for deploy windows 7.png

 

fill in the collection details, call it Deploy Windows 7 X64, limit it to All Systems

 

deploy windows 7 x64 collection.png

 

click next through the wizard, we will not add any computers to it yet, and we will not create any queries.

 

deploy 7 collection done.png

 

 

 

Step 7. Create Collection variables

 

Perform the following on your SCCM 2012 server as SMSadmin.

 

We want to set UDA variables on our collection, so that a UDA user gets assigned as the primary user of computers deployed in this collection. We are doing this to show you that you can set a primary user to a device based on Collection Variables.

 

We could do this in other ways, for example using task sequence steps to set the variables or prestart commands or a frontend HTA, I will come back to this subject later, but for now, let's just see it in action by specifying the two variables below.

 

Right click on the Deploy Windows 7 X64 Collection and choose Properties

 

collection properties.png

 

click on the Collection Variables tab, click on the yellow startburst and add a new variable called SMSTSAssignUsersMode, set the value to Auto and remove the checkmark from Do not display this value in the Configuration Manager console

 

smstsassignusersmode.png

 

do the same again for another variable called SMSTSUdaUsers, specify the user as domain\user

 

smstsudausers.png

 

 

Step 8. Deploy our Task Sequence

 

Perform the following on your SCCM 2012 server as SMSadmin.

 

To make the task sequence available to computers we need to Deploy it. In Software Library, select our Deploy Windows 7 X64 task sequence and choose Deploy

 

deploy task sequence.png

 

select our Deploy Windows 7 X64 collection and click ok to the warning

 

ok no members.png

 

change purpose to Available (this keeps it optional, Required is Mandatory ! and dangerous as a result), place a checkmark in Make available to boot media and PXE

 

purpose.png

 

click next through the task sequence, until distribution points, by Default it will be set to Download content locally when needed by running task sequence, you can get this to change to Access content directly by editing each package referenced in the task sequence and setting the Data Access tab for each package, place a checkmark in Copy the content in this package to a package share on Distribution points

 

download content locally.png

 

click next through the wizard to completion.

 

deploy wizard completed successfully.png

 

In our next part we will create an Application, and create a deployment type for that application to only install if the Primary User is True for that device (User Device Affinity), we will then add a computer to the new collection, PXE boot it and watch the process from start to finish.

  • Like 2

Share this post


Link to post
Share on other sites


n00blar    2

Couple of questions in regards to this lab (mainly due to my lack of knowledge about this topic)

 

1. What are these UDA variables used for?

2. USMT, what settings are you collecting by using this? (I will read about this later on, as I'm not familiar with this either)

 

Thanks!

Share this post


Link to post
Share on other sites
Lucero    1

anyweb, do I deploy Office / Adobe through SCCM, or is it just better to capture a reference machine with Office / Adobe already on?

Share this post


Link to post
Share on other sites
anyweb    399

Couple of questions in regards to this lab (mainly due to my lack of knowledge about this topic)

 

1. What are these UDA variables used for?

2. USMT, what settings are you collecting by using this? (I will read about this later on, as I'm not familiar with this either)

 

Thanks!

 

the UDA variables are used to set who the Primary User(s) are for this device, useful for targetting software to computers later...

 

USMT is for migrating users data, we'll come back to that later

Share this post


Link to post
Share on other sites
anyweb    399

anyweb, do I deploy Office / Adobe through SCCM, or is it just better to capture a reference machine with Office / Adobe already on?

 

up to you, normally i'd recommend you keep FAT applications in your build and capture, and deploy everything else in the Deploy Task sequence, but this is just a lab so do whatver you want !

Share this post


Link to post
Share on other sites
anyweb    399

what error do you get when you pxe boot a computer ?

Share this post


Link to post
Share on other sites
leowenlu    0

what error do you get when you pxe boot a computer ?

 

PXE - E55,

 

WDS is up and running. This is my DHCP setting on a Cisco Router.

 

option 60 ascii PXEClient

option 66 ip 192.168.117.22

option 67 ascii \SMSBoot\x86\wdsnbp.com

 

Any idea where I can start to troubleshoot?

Share this post


Link to post
Share on other sites
MatthieuV    0

Hi,

When I try to deploy Win Seven x64 on my workstation I obtain this error

Failed tu run task sequence

GR2000004 cannot be located on a distribution point

 

GR2000004 is my Image Boot x64

And when i look in my DP for it, it is present

 

Can you help me to solv this problem

Thanks

post-14793-0-71131900-1328863395_thumb.jpg

post-14793-0-12482900-1328863508_thumb.jpg

Share this post


Link to post
Share on other sites
mca91601    1

I've followed this step by step, and I keep running into abortpxe.com when trying to PXE boot a Dell 755 for Windows 7 x64 capture task. SCCM2012 is running on it's own server, DHCP is running on a root-level domain controller w/ options 66 and 67 enabled, pointing to the SCCM server's IP address.

Share this post


Link to post
Share on other sites
anyweb    399

did you successfully PXE boot before this ? if so just delete the computer object, then re-import it

Share this post


Link to post
Share on other sites
mca91601    1

did you successfully PXE boot before this ? if so just delete the computer object, then re-import it

 

No I haven't successfully booted into PXE yet, ever. I thought I screwed up in the config somewhere, so I restored from a snapshot (our SCCM 2012 RC runs on a VM), redid the configs, and still can't get it to boot from PXE. :( abortpxe.com is a thorn in my side right now. I've been stuck here for a few weeks, reading into this forum to see where things went wrong and stuff.

Share this post


Link to post
Share on other sites

I followed your guide and created a Windows 2008 R2 image that I could deploy. I was able to build and capture the Image the server image just fine, no errors, but when I go to deploy the new image, I get a 0x80004005 error.

 

Did I miss any thing?

post-11944-0-82743900-1333372380_thumb.jpg

Share this post


Link to post
Share on other sites
boss300    0

With windows server 2008 R2 you must use the x64 boot image with your deploy task sequence.

 

Have you check the smsts.log file?

Share this post


Link to post
Share on other sites
Yuma    1

If I followed this part like you do it here, and now I want to PXE boot an empty client will it just install? Let's say this client is already in the devices group but not in the deploy windows 7 group, am I thinking correctly that I first have to add the PC to the deploy windows 7 group?

 

Also if I boot the empty client can I choose between "capture reference machine windows 7 x64" and "deploy windows 7 x64"? This is because the client is also part of the capture ref. machine group.

Share this post


Link to post
Share on other sites
gavtheman3    0

Hi,

 

I have a stupid question,

 

I am wondering if someone more knowledgeable than me would be able to help me, I’ve got everything up and running. Task sequences run and install fine. I was wondering if there's an option somewhere that I've missed for hiding an operating system from the software center, i know i can hide applications but can't find anything for Task sequences? I need it to show up in the PXE boot but not in the software center. I want to stop users from clicking on it and re-installing the OS. Is there a way to do that?

 

Hope that made sense to someone!

 

Thanks. :)

 

Gav.

 

Ignore my last post, i've managed to find a way.

Edited by gavtheman3

Share this post


Link to post
Share on other sites

I followed your guide in SCCM 2007 to migrate user data using the USMT 4 package. 2012 brings some changes by supporting the migration via the GUI. Do you have any specific details on how you got that working for a XP to 7 upgrade?

Thanks,

Ryan

Share this post


Link to post
Share on other sites
anyweb    399

I've gone through given above, all goes well, but after system restart getting error bootmgr missing. please advise

 

attach your smsts.log file from the attempt and we'll check it out, my guess is you didn't add any network drivers for your specific hardware to your boot.wim file and got no ip address which then meant the task sequence failed and it rebooted eventually to a blank harddisc or you are missing the network driver in the apply driver package step, but to be sure we need the smsts.log file,

 

pressing F8 after enabling command prompt support in your boot images will help this.

Share this post


Link to post
Share on other sites
bbengs    0
In our 2007 environment we set the TS to only push out to "x86 Windows 2000 Service Pack 4"client platforms to keep our advertisements to only show up on PXE boot and not in the Run Advertised Programs.  In 2012 I do not see that option available.  Show I am still trying to find the option that will ONLY let it show up in PXE and not the Software Center. 
Any ideas?

Share this post


Link to post
Share on other sites
jcast32    0

Thanks for your work, it has been great. I now am able to push Windows 7 with ZTI we will be doing a replace scenario and now have been asked to try to capture an image of the computer before the replace happens as a precautionary measure. I thought I saw it somewhere in here but can't seem to find it so now I'm not sure but can this be done? We are currently running XP Sp3 and migrating to Windows 7. We will be using PC Mover to migrate the apps and user settings but as I mentioned now I need to capture an image of the computer as it stands before the migration. Any help would be greatly appreciated. Thanks.

Share this post


Link to post
Share on other sites
anyweb    399

you can capture the image using ztibackup.wsf it's part of the mdt toolkit package,

if you look at the HTA frontends' i've released you'll see exactly how to do it

cheers

niall

Share this post


Link to post
Share on other sites
bocarfofana    0

Hi i get the following error when i attempted to install WIn 7 OS.

If someboy any ideas for the errors, i need help

 

Failed to run the action: Demander le stockage de l'état de l'utilisateur.

Unknown error (Error: 00004005; Source: Unknown) TSManager 21/09/2012 11:57:15 956 (0x03BC)

Set authenticator in transport TSManager 21/09/2012 11:57:15 956 (0x03BC)

Set a global environment variable _SMSTSLastActionRetCode=16389 TSManager 21/09/2012 11:57:15 956 (0x03BC)

Set a global environment variable _SMSTSLastActionSucceeded=false TSManager 21/09/2012 11:57:15 956 (0x03BC)

Clear local default environment TSManager 21/09/2012 11:57:15 956 (0x03BC)

Let the parent group (Capturer les paramètres et fichiers utilisateur) decides whether to continue execution TSManager 21/09/2012 11:57:16 956 (0x03BC)

Let the parent group (Capturer les fichiers et les paramètres) decide whether to continue execution TSManager 21/09/2012 11:57:16 956 (0x03BC)

The execution of the group (Capturer les fichiers et les paramètres) has failed and the execution has been aborted. An action failed.

Unknown error (Error: 80004004; Source: Unknown) TSManager 21/09/2012 11:57:16 956 (0x03BC)

Failed to run the last action: Demander le stockage de l'état de l'utilisateur. Execution of task sequence failed.

Unknown error (Error: 00004005; Source: Unknown) TSManager 21/09/2012 11:57:16 956 (0x03BC)

Set authenticator in transport TSManager 21/09/2012 11:57:16 956 (0x03BC)

Task Sequence Engine failed! Code: enExecutionFail TSManager 21/09/2012 11:57:19 956 (0x03BC)

**************************************************************************** TSManager 21/09/2012 11:57:19 956 (0x03BC)

Task sequence execution failed with error code 80004005 TSManager 21/09/2012 11:57:19 956 (0x03BC)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×