Search This Blog

Sunday, June 26, 2011

Windows 7 Deployment using SCCM2007 - A simple guide

This is my 3rd article on SCCM in recent weeks, the 1st dealing with installation on a 2008 R2 host is here, the 2nd showing basic configuration is here. This article aims to provide a simple overview of windows 7 deployment for the novice SCCM user - its designed for those people using SCCM 2007 in a virtual/physical lab situation rather than those looking for production assistance.

SCCM2007 is a powerful multi-purpose system with many enterprise applications, one of which is deployment. Over the last few weeks I've been testing windows 7 deployment in a test-lab and have discovered a number of things 1) the guides which exist on the web are full of conflicting information and aren't entirely suited to novice IT professionals and 2) the process is easier than you think. With this guide I hope to give an end-end overview of the process, staying concise and keeping it directed at beginners.

Deployment through SCCM can be as simple or complex as required, but all deployment operations can be distilled down to a number of basic steps :-

1)Obtain and provide installation media and/or data files.
2)Create a task sequence to perform a 'build & capture' of the OS, packages, driver files and perform any system configuration.
3)Advertise the task sequence to one or more 'master' machines.
4)Perform the installation and Capture
5)Add the 'master' installation image to SCCM
6)Create a Task sequence for the installation process and advertise it to a collection.
7) Perform the installation on one, ten, one hundred or more target machines.

Installation Media & Preparation

Create a 'sources' tree at a suitable location on the SCCM server, for my lab environment this was the C drive in < c:\sources\os\7\retail\x64\professional > this will obviously differ in a production environment or if you will be testing the process with an alternative version of windows 7. Once created copy the entire OS installation DVD into this folder. Ensure the 'sources' folder is shared and suitable permissions set ( for the lab you can think more about convenience and less about security - but be careful to give this some consideration in your production environments ).

At this stage we should also prepare the collections used further in the article. Expand < Site Database -> Computer Management -> Collections > and create a suitable structure, for my lab environment I've created a 'build and capture' parent folder, and a 'build and capture windows 7' child; if nothing else this will ensure that we are consistent between lab and production environments.

collection1
collection1


Next we need to ensure we have the SCCM2007 client installation package ready to go, it will be installed at a later stage so we can go ahead and create it now. Open the SCCM2007 console and navigate to 'Software Distribution -> Packages', Right Click 'new package from definition'.

package1
package1


Select the 'Configuration Manager Client Upgrade' and click 'Next'. On the following screen select 'Always obtain files from a Source Directory' and click 'Next'. On the screen displayed next set the options as shown in the screen-shot below, obviously altering the path as appropriate for your environment.

package2
package2


Finish the wizard and allow the package to be created. Once done, expand the package, select distribution points, right click and select 'new distribution points'. Which points you deploy to will depend on your environment but as a rule select any 'NON PXE' points as shown below. Complete the wizard and then update the distribution points in the usual way.

package3
package3


The last aspect we need to configure is to provide SCCM with the location of the installation files we copied in the first step above. Using SCCM2007 console navigate to < Site DB -> Computer Management -> Operating system deployment -> operating system install packages > Right Click and select 'Add operating system install package'.

package4
package4


When asked for the source directory path, enter the UNC location for the installation media you copied to the share earlier. In the case of my lab environment this is in < \\can-dev-dc2\sources\os\7\retail\x64\professional>

package5
package5


Enter suitable detailed for the OS installation package as exemplified on the screengrab below and finish the wizard.

package6
package6


Once the package has been created, expand it in the SCCM console, select distribution points, right click -> new distribution points. Select any 'NON PXE' distribution points (be sure to pay attention at this stage) - the image is a installation image and NOT a boot image so selecting PXE would be wrong. Once completed, Right click distribution points and select 'Update Distribution points'.

Task Sequence

At this point the majority of the preparation activities have been completed. Our aim in this section is to create a task sequence which controls the installation of a base windows 7 image, together with a capture activity at the end of the process. The end result will be a master windows 7 image which can be used for any deployment activities within your lab, or around your organisation.

Navigate to < Site DB -> Computer Management -> Task Sequences > within SCCM console. Right click and choose to create a new task sequence. Select 'build and capture a reference operating system'. Choose a suitable name as detailed in the screen capture below, in addition to selecting a x86 or x64 boot image and click next.



The next screen will ask which installation package to use, we will select the installation image we added earlier. Once selected use the drop down to select the specific edition to install - for this lab situation we will be using windows 7 professional (production environments may use enterprise to avoid per machine activation). Don't enter a product key at this stage, tab or click to the next section and pick a suitable administrator password.



Click next and elect NOT to join a domain at this stage, although the final deployments generally will domain joined, we don't want our master image polluted with any group policy settings.



On the next screen select to install the 'configuration manager client upgrade' package we created earlier, followed by selecting NOT to install updates (Again, in a production environment you should probably choose to apply updates to minimise the images vulnerability).

On the 'image properties' screen enter suitable information (as shown below) or something more fitting your environment.



Finally click next, and enter the capture settings similar to those shown in the screencapture below. The first box will determine where the image capture is stored, the second specifies the account which will be used for the transfer&capture.



Advertise the Task Sequence

n order to allow & control which machines the sequence will be operated upon we need to advertise the sequence to a specific collection which can contain one or more machines. To accomplish this locate the task sequence created in the previous step, right click and select advertise.

advertise
advertise


On the first screen pick a suitable name for the advertisement, ensure the task sequence is set to the one we just created and pick a suitable collection to which it will be advertised. Also ensure that the 'make this task sequence available to boot media and PXE' checkbox is active.

adverise2
adverise2


Click next and on the schedule screen and use the yellow start to set the schedule to as soon as possible. In addition set the options as per the second screenshot to ignore maintenance windows, allow system restarts outside maintenance windows, configure as high priority and finally always re-run program.

advertise3
advertise3

advertise4
advertise4


Click next and on the distribution points dialogue set the options as indicated below.

advertise5
advertise5


Click next again and on the interaction screen ensure that the option to show progress is selected, click next on all screens from this point, accepting any defaults. Once complete the advertisement is active and we should add a machine to the build & capture collection to progress.

Expand < SiteDB -> Computer Management -> Operating System Deployment -> Computer Association >  Right click and 'import computer configuration. Elect to import a single computer and click next. Enter the unique identification for the machine (I suggest MAC address) and follow the dialogues through, entering the correct 'build & capture windows 7' collection when prompted.

computer association1
computer association1


N.B if a machine is already in the system, you can add it manually to a collection by locating the collection, Right click and select properties and then click the membership rules tab. Click on the computer symbol to add static membership.

computer association2
computer association2

computer association3
computer association3


At this point you are ready to proceed to the next step and run the build and capture process on your master workstation.

Installation & Capture

Start the machine which will run the build & capture task sequence and select network boot. Ensure that the machines first boot priority is network and its second is the HD.

capture1
capture1


Windows PE will boot and begin by partitioning the primary HD of the target computer.

capture2
capture2


At this point the machine will install windows 7 and proceed through a series of reboots, performing a different action at each point.

capture3
capture3

capture4
capture4


Once completed the system may reboot one last time and the capture process will begin, this could take anywhere from five, to fifty minutes or longer depending on the hardware and network speeds in your environment. Once completed two things will happen, firstly the machine will reboot into the screen as shown below and secondly you will have a .wim capture within your SCCM capture sources share as defined earlier.

capture5
capture5


Adding the operating system image

Expand <Site DB -> Computer management -> Operating System Deployment -> Operating System Images > Right click and select Add operating system.

add-os
add-os


Click next and when asked for the location of the image enter < \\can-dev-dc2\sources\captures\7\win7professional.wim > (altering as required for your environment)

add-os2
add-os2


Accept all defaults to finish the wizard and return to the SCCM console. Expand the image, click distribution points and right click -> new distribution points. Again, this stage may need some though on the part of the reader, but in a lab environment elect to deploy to any NON PXE distribution points.

add-os3
add-os3


Proceed through the wizard and return to SCCM console. Locate the distribution points, right click and select update distribution points.

Installation Task Sequence

After many preparatory steps we're now at the stage where we can deploy our machine(s). Any machines you wish to deploy will need to be in the Deployment -> Windows 7 collection ( if you havent already created this you should do so now, the process is the same as when you created a build & capture collection earlier).

Using the SCCM console expand < Site DB -> Computer Management -> Operating System Deployment -> Task Sequences >, right click and elect to create a new task sequence. Select to install an existing image package as indicated on the screengrab below.

installtask1
installtask1


Click next and assign the sequence a suitable name and boot image as shown below.

installtask2
installtask2


Click next and select the image package we created in the previous step, the image '1-1' and leave all other options as default with the exception of administrator password which you should set as appropriate for your environment.

installtask3
installtask3


Click next and this time we will configure the sequence to join the deployed machine to the domain, this section is of course environment specific but see the screen dump below for my settings. The domain OU box can be filled in either manually with a LDAP string, or by clicking browse (recommended)

installtask4
installtask4


Click next and this time you will be provided with options for user state migration, as this is a lab situation and we have no previous data on our machines I decided to de-select all the options.

installtask5
installtask5


Click next and choose your update strategy - either to install updates during deployment or not. This will differ depending if your following this guide in lab or production settings ( I decided NOT to install updates). Complete the wizard by accepting defaults and then advertise the sequence by right clicking and selecting advertise.

installtask6
installtask6


As with the build and capture advertisement, follow the screen shots below and make any alterations needed depending on your environment.

installtask7
installtask7

installtask8
installtask8

installtask9
installtask9


Perform the installation

Ensure the machine you are deploying on is imported into SCCM (described above) and that its associated with the deployment -> windows 7 collection (also previously described).

Start your virtual or physical machine you are using for deployment testing and configure to boot from PXE first and HD second. The machine should boot into windows PE and proceed to install the OS, configuration settings, additional packages and any other options which have been set. Follow the screen shots below for a overview of what the process should look like.

deploy
deploy

deploy2
deploy2

deploy3
deploy3

deploy4
deploy4

deploy5
deploy5

deploy6
deploy6


After a final reboot the windows 7 machine will be in a useable state joined to the domain with the windows management client installed. Further customisation is possible but that is beyond the scope of this article. I hope this was of some help, as usual please add any comments, errors or omissions you find while following my guide - I'll commit to keeping it maintained.

Wednesday, June 8, 2011

How Create Task Sequence in SCCM


SCCM: How to Create Task Sequence for OSD

by Andrius on Mar.20, 2008, under Microsoft, SCCM/SMS2003
In order to create OSD Task Sequence you need to have you image created and added to SCCM. Below are the links how to do that:
How to capture OS image
How to add OS image
Also you must have SCCM client package ready:
How to create SCCM client Package and Program for OSD
Open Configuration Manager Console
Go to System Center Configuration Manager>Site Database>Computer Management>Operating System Deployment
Right click on Task Sequences and select New>Task Sequence
110.jpg

New Task Sequence Wizard will start
Select Install an existing Image package and click Next
22.jpg
Give a name to your task sequence and select Boot image
Click Next
32.jpg
In Install the Windows Operating Systemclick Browse and select the image that you wan to use.
Select Partition and format the target computer before installing operating system
Enter the OS Product Key
Select Licensing Mode this is needed for server OS
You can enable or disable Local administrator account. If you enable it you have to type the password. Click Next
42.jpg
If you want you can join PC to domain but then you need to provide all the required details. Click Next
52.jpg
Now you need to provide SCCM client Package which you created earlier(How to create SCCM client Package and Program for OSD) and click Next.
62.jpg
Untick all the boxes in Configure State Migration. This is because we are not migrating PC.
72.jpg
If you have Updates configured in SCCM environment then you can install them during the imaging process. In my cae i slect Don’t install any software updates.
82.jpg

You can make SCCM install software during imaging. But you have to have packages prepared beforehand. I selected Office 2007. You can leave it blank. Click Next.
91.jpg
Review the summary and click Next.
101.jpg
Wait for progress to finish and click Close.
112.jpg
The task sequence is ready but by default the SCCM does not use Quick format after creating partitions. So depending on your drive size it can take some time to format the drive. So here are the steps to change that.
Go to System Center Configuration Manager>Site Database>Computer Management>Operating System Deployment>Task Sequences
Right click on Task Sequence you have just created and select Edit
161.jpg

Select Partition Disk
131.jpg

Under Volume right click on Primary partition and select Properties
141.jpg
In Properties tick Quick Format. Click OK and OK again in Task Sequence Editor.