Windows 7 – Deploying System Images

Been studying Deploying System Images (Chapter 3) for the last couple of days, I’ve just completed the first section of the chapter which covers Managing System images prior to deployment.  This involves mounting .wim images to folders using the ImageX or DISM command line tools and being able to service them i.e. add drivers, add applications etc etc. 

It’s taken a little longer than I would have liked as during the practices it has taken around 40 mins to ‘mount’ an image, and not much less than that to unmount an image.  I’ve not even attempted adding an application to an image which is what I am going to attempt next. 

I’ve just completed the Lesson Review test and scored 5/5 so it seems to have sunk in!!  Let’s see how this adding an application works!!

Next Lesson in this chapter is Deployment of images, which may need me to install my (ahem) ‘test’ version of Windows Server 2008 exciting eh!!!

Windows 7 – Managing Virtual Hard Drives Summary

Managing Virtual Hard Drives Lesson Summary

To create a 20gb native Virtual Hard Drive called systemvhd in a folder called Windows 7 on an external USB hard disk with the drive designation g: you would use the ‘create vdisk file=g:\Windows7\systemvhd.vhd maximum=20000’ command.

To verify that the boot entry you created using the BCDEdit tool you should use the bcdedit /v command.

To add an install image from the source image file ‘Install.wim’ in the c:\myimages foler to the image store on a WDS Server you would use the following command:

wdsutil /verbose /progress /add-image /imagefile:C:/myimages/install.wim /Imagetype:Install

You would use the Official Virtual Machine Servicing Tool to boot client PC’s at a particular date/time in order to have VHD’s receive updates from your WSUS server.

Windows 7 – Adding a VHD to the Boot Menu

Windows 7 – VHD

Adding a VHD to the Boot menu

1. If necessary, log on to the Admin computer with Administrator account.

2. Open an elevated command prompt and enter bcdedit /copy {current} /d “MyVHD”.  This returns the GUID of the loader object. You use this value to replace the variable <guid> in the next steps in this procedure.

3. Enter bcdedit /set<guid> device partition=w:

4. Enter bcdedit /set <guid> osdevice vhd=[locate]\vhds\myvhd.vhd

5. To force Windows 7 to automatically detect the HAL, enter bcdedit /set <guid> detecthal yes

6. To test if your boot entry has been successfully created, enter bcdedit /v.

Windows 7 – How to create a VHD

 

Windows 7

How to create a Windows 7 VHD

1. Log on to the computer with an Admin Account

2. Create a folder called VHDs on the C: drive. If you prefer to use an external USB disk drive, adjust your drive letter accordingly, but first ensure that the external drive is formatted with the NTFS file system.

3. On the Start menu, right-click Computer and choose Manage. If prompted, click Yes to allow the program to run.

4. Select Disk Management.

5. Right-click Disk Management and choose Create VHD  

6. Complete the Create And Attach Virtual Hard Disk Drive dialog box,  Click OK. If necessary, close the AutoPlay dialog box.

Dialog Box

Location = c:\vhd\myvhd

Size 20000 MB

Select Fixed Size (Recommended) Which is the default, Click OK.

This step may take some time.

7. In Disk Management, right-click the icon beside the disk designation and choose Initialize Disk. The VHD appears in the Disk Management pane.

8. Ensure MBR (Master Boot Record) is selected and click OK. The status of the disk changes to Online.

9. On the newly created disk, right-click Unallocated and select New Simple Volume.  This starts the New Simple Volume Wizard. Click Next.

10. Click Next to accept the volume size defaults.

11. In the Assign Drive Letter Or Path dialog box, select W and then click Next.

12. In the Format Partition dialog box, give the volume a label (such as MyVHD), as shown. Ensure that Perform A Quick Format is selected. Click Next.

13. Click Finish.

Windows 7 – Creating Windows PE Bootable Media

Windows 7

Creating a Bootable Windows PE Medium

Creating a Bootable Windows PE CD/DVD

1.     On your technician computer, create a local Windows PE Build directory.  Open an elevated command prompt and enter the following commands:

cd c:\program files\Windows AIK\Tools\PETools\copype.cmd <architecture> <destination>

<architecture> = x86, amd64 or ia64

<destination> = is the path to the local directory

Copype.cmd x86 c:\winpe_x86

2.     Copy ImageX into the ISO subdirectory of your Windows PE build directory.  On an x86 computer, you enter the following command:

Copy c:\program files\Windows AIK\Tools\x86\imagex.exe c:\winpe_x86\iso

3.     Optionally create a configuration file called Wimscript.ini by using a text editor.  The configuration file instructs the imagex tool to exclude certain files during the capture operation (for example, pagefile.sys or all .zip files)

4.     Save the configuration file to the ISO subdirectory of the Windows PE build directory.  The ImageX tool will recognise a Wimscript.ini file in the same location.

5.     Create an ISO file by using the OSCdimg tool.  For example, on an x86 computer you would click All programs, Microsoft Windows AIK, open the deployment tools command prompt and enter the following:

oscdimg -n –bc:\winpe_x86\etfsboot.com Cc:\winpe_x86\ISO

c:\winpe_x86\winpe_x86.iso

6.     Burn the image (Winpe_x86.iso) to a CD/DVD ROM disk.

Creating a Bootable Windows PE UFD

Follow steps 1 & 2 from above and optionally follow step 3 from above.

Prepare a UFD Device –

1.     From a running Vista/Windows 7 Operating System or a Windows PE Session, Insert your UFD Device.

2.      At a command prompt us Diskpart to format the device as FAT32 Spanning the entire device, and set the partition active:

Diskpart

Select disk 1

Clean

Create partition primary size=(size of device)

Select partition 1

Active

Format fs=fat32 quick

Assign

Exit

The example above assumes Disk 1 is the UFD

3.     On your technician computer, copy all the content in the \ISO directory onto your UFD device.  You can manually create the structure or use the xcopy command to automatically build and to copy the appropriate files from your technician computer to your UFD.  For example:

                   Xcopy c:\winpe_x86\iso\*.* /s /e /f  f:\

Where c is the letter of your technician computer hard disk and f is the letter of your UFD device.

Windows 7 Configuration MCTS Self Paced Training Kit exam 70-680

Is riddled with errors, if you are using this book to study favourite this page which corrects some of  the errors in the command lines provided in this book.  I know choose to self study with MS Press and we will give you command lines that don’t work, leaving you to go and find out the correct command lines for yourself even though you’ve paid us £60 for this book!!!  See it as improving your Google Search skills!!!!  ‘kin eejits!!  <That is all>

Windows 7 Configuration – Capturing System Images

I’ve just completed Chapter 2 Lesson 1 – Capturing System Images and here’s a summary of the Lesson Review questions and answers:

To capture a windows 7 WIM image you need to boot to Windows PE and use the ImageX tool. 

You can use The Windows SIM tool in Windows AIK and Microsoft Notepad to create an unattend answer file

To prepare a reference computer and capture its Windows 7 image for distribution to several destination computers you need to, Install the Windows AIK on your technician computer, Install your chosen edition of Windows 7 on the reference computer, create a Windows PE Optical Disk or UFD , use the ImageX tool to capture a systems image of the reference computer and use the Sysprep tool to prepare the reference computer for imaging.

When using Sysprep the /generalize command line option removes all unique system information from the installation.

The oobe (Out Of Box Experience) Windows Setup Configuration Pass applies settings to Windows 7 before Windows welcome starts.

Now onto Chapter 2 Lesson 2 – Managing Virtual Hard Disk Files. ohh the excitement!!!

Windows 7 – Configuration

I’ve not done much studying recently but I’ve managed to spend a couple of hours at it (studying that is) this afternoon.  I thought I would start posting Blogs of what I have studied just to help jog my memory, I’m getting old you see and years of alcohol abuse has seems to have rotted my brain!!!   So I apologise if I bore you here, but it’s up to you if you read it, It’s not intended for you it’s intention is to act as my memory!!

So what have Idone today, well first of all I had previously managed to create a USB flash drive to perform an unattended installation of Windows 7.  All the user had to do was select what version of Windows 7 they wanted to install and the Autounattend.xml file I had created would do the rest.  Well this had stopped working it was failing at the point where it created the partition during the installation.  I used Windows image manager to edit the autoattend.xml file, I actually ran a ‘Validate Answer File’ and no errors were flagged, therefore I reset the part of the xml file where it performed the partition created and it seemed to work, although I had to manually select what disk I wanted the partition to be created on, therefore rendering my automated Windows 7 Installation not very automated.

Anyway I’m going to revisit this problem in a post of the future. 

As for the next stage of my Windows 7 Configuration studying I was on Chapter 2 Lesson 1 of the MS press Windows 7 Configuration Self Paced Training kit.  I have managed to succesfully create a Reference image using my Windows 7 Installation USB flash pen and then by using my USB Windows PE and ImageX flash memory pen take a image of that installation to the c: drive of my desktop over the network. 

After completing the Windows 7 Installation I performed a Sysprep OOBE Generalise with the command line for this being:

c:\windows\system32\sysprep\sysprep.exe /oobe /generalize /shutdown

I then booted the latpop to my Imagex usb pen, used the Net Use command to connect a drive to my Desktops’s hard drive:

Net use j: \\hostname\c$

I then created a folder to store the image in on my desktops hard drive and then using the Imagex command took an image of my Windows 7 OOBE (out of box experience) Image.

Imagex /capture c: j:\mywin7images\13052010\win7installationimage.wim “My Win7 Image” /compress fast /verify

The image process took approximately 2 hours to complete.

The next exercise involves practising deploying the image I have taken on to another computer.  I going to try to complete this today depending on how long it takes to capture this image but the image process is telling me there are 27 microsoft minutes left which could be anything between 20 minutes and 3 hours!!!

B.T. to form a strategic partnership with Onlive Gaming

BT has announced today that it is to form a strategic partnership with cloud computing video game company Onlive.  BT will be the exclusive distributor of Onlive gaming services in the UK.

Well done BT, I wonder how the games will perform using my BT subsidiary provided 2 meg maximum (more like 750kbs) connection.  Maybe you be better upgrading your Infrastructure to bring it into the present day rather than being 10 years out of date!!!  Oh and by the way I’ve still not forgiven you for not pre warning me about a service outage to my Broadband service which resulted in me spending 2 hours on the phone to your Indian Call centres trying to explain to the ‘analysts’ that I had power cycled my router and I had disconnected and reconnected all the cables!!  </rantover>

Tech News – HTC in revenge ‘sue’ against Apple

Today comes the news that HTC are to sue Apple for breach of 5 Patents.  They have filed a complaint with The United States International Trade Commission (ITC) to halt the Importation and the Sale of the iPhone, iPod and iPad in the US.  This is seen to be a revenge sue against Apple who earlier this year took legal action accusing HTC of breaching 20 of it’s patents.

Interestingly Nokia also began a second bout of legal action against Apple in late December last year adding 7 patent infringements to the previous 10 patent infringements it had taken legal action against apple for earlier that year.

The only Apples I will be buying will be the round green type!!  Hold on, could Apples sue Apple for copyright infringement?



Create your own website, free on WordPress.com.Create your own website.
Start free