While participating in a discussion on LinkedIn (http://linkd.in/r3WJPl) where we were discussing what are the different processes\habits that people have in order to setup a newly acquired machine, i decided to document my own process. I personally use a mix of WinPE and ImageX to image the machine and that way preserve that new PC smell.
Here are the details:
On that computer, click Start, All Programs, Windows AIK, right-click Deployment Tools Command Prompt, and then select Run as administrator.
In the command prompt type “copype.cmd x86 c:\winpe_x86” to prepare the staging area.
In the command prompt type “copy c:\winpe_x86\winpe.wim c:\winpe_x86\ISO\sources\boot.wim” to copy the boot image to the staging area
In the command prompt type “copy "c:\Program Files\Windows AIK\Tools\x86\*.*" c:\winpe_x86\iso\” to copy all the tools for manipulating the wim files to the staging area.
Now you need to create a Bootable a USB key. you can refer to an old post of mine that explains and shows the video on preparing the USB stick here (http://blogs.technet.com/b/canitpro/archive/2009/02/16/windows-7-on-a-stick.aspx) or folow the steps below.
To prepare the USB key using the diskpart utility built-in to Windows 7.
- In a command window type “Diskpart” to start the utility, once started use the following sequence to prepare the key to be bootable.
- List disk (to see with disk is your USB key)
- select disk 1 (where disk 1 is the USB key)
- clean (Ensure that you’re NOT pointing at your system disk. CLEAN will wipe your partition table WITHOUT asking for confirmation)
- create partition primary
- select partition 1
- format quick fs=fat32
- assign (take note of the drive letter assigned to the key)
now that the key is ready, copy the staging area to your key “Copy C:\winpe_x86\iso\*.* /e D:\” D: being the drive letter assigned to the USB key.
Your key is now ready. so boot your newly acquired PC (or any PC you need to capture) with the USB key we just created and once booted connect to the network share you want to use as your repository for the image.
in my case i use my home server so the command will be as follows “net use z: \\home\public” you should be prompted for credentials, and once supplied the drive Z: will be mapped.
once mapped, it’s as simple as using the ImageX utility to capture your system partition to the network drive. the command line in my batch file looks like this, “imagex /capture d: z:\newpc\lenovox61data.wim "lenovo x61" /verify”
you can find more information on the ImageX command line structure here.
Once the process is finished, i have an image i can restore at any point should i need to.
I hope this helps.
Pierre Roman, MCITP, ITIL | Microsoft Canada | Senior Technical Account Manager | firstname.lastname@example.org
phone: 613-212-2370 | mobile: 613-715-2311