Monday, February 16, 2009

Setting up Windows Deployment Services for WIM image based network deployment of Windows XP on Windows Server 2003

In this post I will provide a step-by-step guide on how to install and configure Windows Deployment Services to deploy a Windows XP based WIM image on Windows Server 2003 using VMware Workstation 6. I will update this and other posts as new information or problems are discovered. Please feel free to leave comments and ask questions to this and other posts and I will try my best to answer them.

1. Install Windows Server 2003 R2 SP2.
 W2K3-2008-09-28-18-25-51

2. Go to Start > Control Panel > Add or Remove Programs. Then click on Add.Remove Windows Components.W2K3-2008-09-28-18-29-07

3. Browse down the list and check Windows Deployment Services. Then click Next.
W2K3-2008-09-28-18-31-46 

4. When/If prompted insert Windows Server 2003 R2 Service Pack 2 CD. You can do this by going to VM > Removable Devices > CD/DVD (IDE) then clicking Settings...W2K3-2008-09-28-18-32-17 

0000 

5. Select Drive letter if using a CD/DVD. Select Use ISO image file and browse to your ISO file and select it then click Open.
0001 

6. Click OK.
0002 

7. Click OK if it doesn’t automatically proceed.

8. Click Exit if Welcome to Microsoft(R) Windows(R) Server 2003 pops up.
W2K3-2008-09-28-18-46-06 

9. Click Finish.
W2K3-2008-09-28-19-23-09  

10. Click Yes to prompt.
W2K3-2008-09-28-19-23-46  

11. Download Windows Automated Installation Kit (WAIK) to technician’s computer.
0003 

12. Load Windows Automated Installation Kit ISO by going to VM > Removable Devices > CD/DVD (IDE) Settings...
0004 

13. Select Use ISO image file: and Browse to the WAIK ISO file and select it then click Open then click OK.
0005 

14. Click MSXML 6.0 Setup. 
W2K3-2008-09-28-20-11-09

15. Click Next.
W2K3-2008-09-28-20-12-05 

16. Select I accept the terms in the license agreement then click Next.
 

17. Click Next.
W2K3-2008-09-28-20-12-31 

18. Click Install.
W2K3-2008-09-28-20-13-21 

19. Click Finish.
W2K3-2008-09-28-20-13-58 

20. Click .NET Framework Setup.
W2K3-2008-09-28-20-15-18 

21. Click Next.
W2K3-2008-09-28-20-15-45 

22. Check I accept the terms of the License Agreement then click Install.
W2K3-2008-09-28-20-16-26 

23. Click Finish.
W2K3-2008-09-28-20-19-45  

24. Click Windows AIK Setup.
W2K3-2008-09-28-20-09-21 

25. Click Next.
W2K3-2008-09-28-20-20-49  

26. Select I Agree then click Next.
W2K3-2008-09-28-20-21-13  

27. Click Next. 
 

28. Click Next.
W2K3-2008-09-28-20-22-38  

29. Click Close.
W2K3-2008-09-28-20-28-54 

30. Close the Welcome to Windows Automated Installation Kit window.
W2K3-2008-09-28-20-36-54 

31. Go to Start > My Computer, Browse to C:\ and then create a tempory folder C:\WDS.
W2K3-2008-09-28-20-38-04 

32. Browse to the CD/DVD drive (D:\) and open the winpe.cab file.
W2K3-2008-09-28-20-40-43 

33. Select F1_WINPE.WIM and F3_WINPE.WIM and right click and select Extract, Then browse to and select the WDS folder and click Extract.
W2K3-2008-09-28-20-41-54 

34. Go to VM > Removeable Devices > CD/DVD (IDE) then Settings... Select Use ISO image files. Browse to and select your Windows Server 2008 ISO file then click Open.
0006  

35. Close the Install Windows window.
W2K3-2008-09-28-20-48-47 

36. Browse to D:\sources (where D:\ is your CD\DVD drive letter) and copy boot.wim.
W2K3-2008-09-28-20-50-05  

37. Browse to C:\WDS and paste boot.wim.
W2K3-2008-09-28-20-51-53 

38. Go to Start > All Programs > Microsoft Windows AIK > Windows PE Tools Command Prompt.
W2K3-2008-09-28-22-36-20  

39. Type into the command prompt:

cd C:\WDS
mkdir build_install
imagex /mountrw F1_WINPE.WIM 1 build_install.

W2K3-2008-09-28-22-39-02 

40. Type into the command prompt:

peimg /inf= Drivers\*.inf /image=build_install

If that didn’t work you may have to type the ones that didn’t work manually.

Ex: peimg /inf= Drivers\e1000.inf /image=build_install

W2K3-2008-09-28-22-50-01 

41. Type into the command prompt:

Imagex /unmount /commit build_install

W2K3-2008-09-28-22-50-55 

42. If the computer is not part of a Domain we will have to join it or create a domain. Go to Start > Manage Your Server then click on Add or remove a role.
W2K3-2008-09-28-20-54-26 

43. Click Next.
W2K3-2008-09-28-20-54-46  

44. Select Typical configuration for a first server then click Next. 
W2K3-2008-09-28-20-55-34   

45. Type in your domain name then click Next.
W2K3-2008-09-28-20-56-25  

46. If prompted click Yes.
W2K3-2008-09-28-20-57-57  

47. Click Next.
W2K3-2008-09-28-20-58-54 
48. Click Next.
W2K3-2008-09-28-20-59-21 

49. Click OK to prompt.
W2K3-2008-09-28-20-59-42 

50. Load Windows Server 2003 ISO/CD into virtual machine. Go to VM > Removeable Devices > Settings... Select Use ISO image file: then click Browse then select your ISO file then click OK.
W2K3-2008-09-28-21-00-02 0001 

51. Click Exit on the Welcome to Microsoft(R) Windows(R) Server 2003 window.
W2K3-2008-09-28-21-08-52

52. If prompted click Yes.
W2K3-2008-09-28-21-09-47 

53. Click Next.
W2K3-2008-09-28-21-15-37 

54. Click Finish.
W2K3-2008-09-28-21-15-54

55. Close Manage Your Server.
W2K3-2008-09-28-21-16-40 

56. Go to Start > Administrator Tools > Windows Deployment Servers. Then Expand Server and Select you Server.
W2K3-2008-09-28-21-18-09 

57. Right click and select Configure Server, Then click Next.
W2K3-2008-09-28-21-18-50 

58. Click Next.
W2K3-2008-09-28-21-19-15 

59. Click Yes to prompt.
W2K3-2008-09-28-21-19-34 

60. If DHCP is running on this server then Do not listen on port 67 must be selected. Select Configure DHCP option 60 to ‘PXEClient’ then click Next.
W2K3-2008-09-28-21-21-13 

61. Select Respord to all (known and unknown) client computers then click Finish.
W2K3-2008-09-28-21-22-23 

62. Right click on Boot Images and select add boot image then click browse... then browse to C:\WDS and Select F1_WINPE.WIM then click Open.
W2K3-2008-09-28-21-24-29 

63. Click Next.
W2K3-2008-09-28-21-27-15 

64. Click Next.
W2K3-2008-09-28-21-27-34 

65. Click Finish.
W2K3-2008-09-28-21-29-10 

66. Repeat the last 4 step for F3_WINPE.WIM. When finished it should look like the screenshot below[T1] .W2K3-2008-09-28-21-31-46

67. Minimize Windows Deployment Services and Go to My Computer then browse to C:\RemoteInstall and create a new folder named CaptureBootImages.
W2K3-2008-09-29-17-35-28 

68. Close Windows Explorer and open Windows Deployment Services back up. Right click on Microsoft Windows Visa PE (x86) and select Create Capture Boot Image. In the new windows type Capture Windows XP Image for the Image name and Image description.
W2K3-2008-09-29-17-39-18 

69. Click Browse and save the file in C:\RemoteInstall\CaptureBootImages with the file name Capture Windows XP Image.wim.
W2K3-2008-09-29-17-40-34 

70. Click Next.
W2K3-2008-09-29-17-41-00 

71. Click Finish.
W2K3-2008-09-29-17-48-24 

72. Right click on Boot Images and select Add Boot Image.
W2K3-2008-09-29-17-49-59 

73. Click Browse and browse to C:\RemoteInstall\CaptureBootImages and select Capture Windows XP Images.WIM then click Open.
W2K3-2008-09-29-17-51-27 

74. Click Next.
W2K3-2008-09-29-17-51-50 

75. Click Next.
W2K3-2008-09-29-17-52-31 

76. Click Next.
W2K3-2008-09-29-17-53-01 

77. Click Finish.
W2K3-2008-09-29-17-54-10 

78. Minimize Windows Deployment Services. Copy/Extract winpeshl.ini to C:\WDS then open it up.
 W2K3-2008-09-29-18-08-59
W2K3-2008-09-29-18-10-27 

79. Find and select e_isa_up in the file.

80. Replace it with one of the following which matches your computer’s HAL.

acpiapic_mp      [ACPI Multiprocessor PC]
acpiapic_up       [ACPI Uniprocessor PC]
acpipic_up         [Advanced Configuration and Power Interface (ACPI) PC]
mps_mp             [MPS Multiprocessor PC]
mps_up             [MPS Uniprocessor PC]
e_isa_up             [Standard PC]
syspro_mp         [Compaq SystemPro Multiprocessor or 100% Compatible]

If using my other guide use acpipic_up [Advanced Configuration and Power Interface (ACPI) PC].
W2K3-2008-09-29-18-13-02

To find your computers HAL you can go to Start then right click on My Computer and Select Manage. Then expand System Tools and select Device Manager. Expand Computer and you will see which HAL your computer is currently using[T2] .
W2K3-2008-09-29-18-15-06 

81. Close the C:\WDS window. Go to Start > All Programs > Microsoft Windows AIK and click Windows PE Tools Command Prompt.
W2K3-2008-09-29-18-31-18 

82. Type the following into the command prompt:

Cd C:\WDS

Mkdir build_install

Imagex /mountrw boot.wim 2 build_install

W2K3-2008-09-29-18-32-14 

83. Type into the command prompt:

peimg /inf= Drivers\*.inf /image=build_install

If that didn’t work you may have to type the ones that didn’t work manually.

Ex: peimg /inf= Drivers\e1000.inf /image=build_install

W2K3-2008-09-29-18-32-56 

84. Type into the command prompt:

Imagex /unmount /commit build_install[T3]

W2K3-2008-09-29-18-33-29 

85. Close Windows PE Tools Command Prompt. Open Windows Deployment Services, Right click on Boot Images and select Add Boot Image.
W2K3-2008-09-29-18-36-07 

86. Click Browse and browse to C:\WDS. Select boot.wim and click Open.
W2K3-2008-09-29-18-40-12

87. Click Next.
W2K3-2008-09-29-18-40-52 

88. Type Deploy Windows XP Image for the Image name and Image description. Then click Next.
W2K3-2008-09-29-18-42-30 

89. Click Next.
W2K3-2008-09-29-18-42-54 

90. When done it should look like this.
W2K3-2008-09-29-18-44-24 

91. Right click on Install Images and select Add Image Group. Type in Workstations.
W2K3-2008-09-29-18-45-17 

92. Click OK. When done it should look like this.
W2K3-2008-09-29-18-47-40


[T2]Update screenshot with a screenshot done from my other guide.

[T3]Add Rmdir build_install to remove build_install directory.

5 comments:

Jerry said...

it's really nice and useful~ i hv been looking for that for so long time~ thx a lot =)

Anonymous said...

Neat howto blog, helped me out, thanks

Unknown said...

hi,

I did all of this and instead of using wim, I used ghost however, after windows start, windows get stuck (in safe mode also) on file
agpcpq.sys which from what I read on the internet the next file is the hal.

What to do ?

Please help thanks

arjanv said...

hi, how to use the winpeshl.ini?
i did step 87 to....but the winpeshl.ini isn't used anywhere in your manual. it need to include somewhere.

please help.

Unknown said...

Interesting write up; I am in the midst of testing right now. If it works (and even if it doesn't), I appreciate the time taken to write this one up. One thing to amend (didn't pay attention to the blogs age) is winpeshl.ini, and the fact that it needs to be placed into the WIM\Windows\System32\ folder.