Thursday, March 17, 2016

Complete guide to WDS (Windows Deployment Server) in Windows Server 2012


Hello,
Today Step by step guide to configure WDS settings.Hope it help you .
 
The following are requirements for installing this role, depending on whether you choose the default installation (both Deployment Server and Transport Server), or only the Transport Server role service

  • Active Directory Domain Services (AD DS): A Windows Deployment Services server must be a member of an Active Directory Domain Services (AD DS) domain or a domain controller for an AD DS domain.
    The AD DS domain and forest versions are irrelevant; all domain and forest configurations support Windows Deployment Services.

NOTE: AD DS is not required if the WDS server is configured in Standalone mode.
    • DHCP: You must have a working Dynamic Host Configuration Protocol (DHCP) server with an active scope on the network because Windows Deployment Services uses PXE, which relies on DHCP for IP addressing.
    • DNS: You must have a working Domain Name System (DNS) server on the network before you can run Windows Deployment Services.
    • NTFS volume: The server running Windows Deployment Services requires an NTFS file system volume for the image store.
    • Credentials: To install the role, you must be a member of the Local Administrators group on the server. To initialize the server, you must be a member of the Domain Users group.

Install Windows Deployment Services
   
    1. Sign in to the server as a member of the local Administrators group.
    2. Server Manager will start automatically. If it does not automatically start, click Start, type servermanager.exe, and then click Server Manager.
    3. Click Manage.
    4. Click Add roles and features, click Next.


    1. On the Before you begin page of the Add Roles and Features Wizard, click Next.

2.            On the Select installation type page, click Role-based or feature-based installation, and then click Next.

3.            On the Select destination server page, select the appropriate server, and then click Next. The local server is selected by default.
    1. On the Select server roles page, scroll down and then select the Windows Deployment Services check box. Click Next.

5.            Remote Server Administration Tools are required to manage this feature. Select Include management tools (if applicable). Click Add Features. Click Next.
    1. On the Select features page, click Next.

7.            On the Select role services page, select the role services to install for Windows Deployment Services. If you wish to install both the Deployment Server and Transport Server, leave these role services selected. Click Next.
    1. On the Confirm installation selections page, click Install.

9.            Windows Deployment Services will now be added to the server. Installation progress will now be illustrated in the Add Roles and Features Wizard.

10.          Log on to the server as a member of the local Administrators group.
    1. Server Manager will start automatically. If it does not automatically start, click Start, type servermanager.exe, and then click Server Manager.
    2. Click Tools, and then click Windows Deployment Services to launch the Windows Deployment Services MMC-snap (or console).

13.          In the left pane of the Windows Deployment Services MMC snap-in, expand the list of servers.

14.          Right-click the desired server, click Configure Server.




15.          On the Before you begin page, click Next.

16.          On the Install options page, choose Integrated with Active Directory.
    1. On the Remote Installation Folder Locations page, choose the default path or enter your own path to the remote installation folder. Click Next.

Note: If your server is running as a DHCP Server, you will see the Proxy DHCP Server page.
Select Do not listen on DHCP and DHCPv6 ports and Configure DHCP options for Proxy DHCP. Click Next.

18.          On the PXE Server Initial Settings page, choose desired option to define which client computers this server will respond to. Click Next. This will complete the configuration of Windows Deployment Services.
    1. When the configuration is completed, click Finish.

20.          If you want to modify any of the settings of the server, right-click the server in the MMC-snap in, and click Properties


Steps for Adding Images
You must add at least one boot image and one install image before you will be able to boot to the Windows Deployment Services server and install an image.

    • Boot images. Boot images are Windows PE images that you boot a client computer into to perform an operating system installation. In most scenarios, you should use the Boot.wim file from the installation media (in the \Sources folder). The Boot.wim file contains Windows PE and the Windows Deployment Services client.
    • Install images. Install images are the operating system images that you deploy to the client computer. You can also use the Install.wim file from the installation media (in the \Sources folder), or you can create your own custom image


    1. In the left pane of the Windows Deployment Services MMC snap-in, right-click the Boot Images node, and then click Add Boot Image.

24.          Browse to choose the default boot image (Boot.wim) on the Windows installation media, located in the \Sources folder.
    1. Click Open, and then click Next.

26.          On the Image Metadata page, enter the desired image name and description. Click Next.

27.          On the Summary page, click Next

To add the Install images

28.          In the left pane of the Windows Deployment Services MMC snap-in, right-click the Install Images node and then click on Add Image Group and create a group name


29.          Open the RemoteInstall folder created in Step No.8 of Configuring WDS


30.          Navigate to the Images, Image Group name and paste the customized install.wim images which you have created for deploying the operating system

31.          Now open the WDS console and you can see all the images appearing under the Image Group section as shown


32.          Right click on any Image name and go to Properties, here you can name your Image and give description to the image. Click on Apply and OK


Installing an Operating System on Machines using WDS

After you have at least one boot and one install image on the server, you can deploy an install image


·         The client computer must be capable of performing a PXE boot.
·         The client must meet the system requirements for the operating system of the install image.
    1. Configure the BIOS of the computer to enable LAN Boot, and set the boot order so that it is booting from the network first.
    2. Restart the computer, and when prompted, press F12 to start the network boot.
    3. Select the appropriate boot image from the boot menu. (This boot image selection menu will be available only if you have two or more boot images on the server).

38.          At the Install Windows page, choose your Locale and Keyboard or Input Method. Click Next.
    1. At the Connect to Your WDS Server authentication dialog, enter your local user account and password. Click OK.
    2. At the Install Windows dialog box, select the operating system you wish to install. If you only have one operating system to install, choose that and click Next.
    3. If prompted at the Where do you want to install Windows page, select the partition you wish to install the operating system on. Click Next.
    4. When the installation is completed, the computer will restart and Setup will continue.

Steps for creating a Capture Image

To create an install image, you must first create a capture image.

    • Capture images are boot images that you boot a client computer into to capture the operating system into a .wim file.
    • You can also create media (a CD, DVD, USB drive, or other type of media) that contains a capture image, and then boot a computer from the media. These images provide an alternative to the command-line utility, ImageX.exe. Except in advanced scenarios, you can create a capture image by using the Boot.wim file from the Windows installation media
    1. In the Windows Deployment Services MMC snap-in, expand the Boot Images node.
    2. Right-click the image to use it as a capture image. In most cases, you can just use the Boot.wim file from the installation media.
    3. Click Create Capture Image.
    4. Type in your Image Name, Image Description, and the location and file name where you want to save a local copy of the file. You must specify a location in case there is a problem with the network when you deploy the capture image. Click Next.
    5. Allow the Create Capture Image Wizard to complete.
    6. Tick Add Image to the Windows Deployment Server now. Click Next
    7. Enter the location of the Windows Image file that contains the images. Click Next.
    8. Enter your Image Name and Image Description. Click Next.
    9. On the Summary page, click Next.
    10. Click Finish.
Capture an sysprep machine using WDS
Now that you have a capture image, you need to prepare a reference computer and then create the install image. The reference computer can be a computer with a standard Windows installation or a Windows installation that has been configured for your environment. First, you boot a computer (which has been prepared with Sysprep) into the capture image. Then a wizard creates an install image of the reference computer and saves it as a .wim file. After that, you can deploy the .wim file to a computer.
    1. Create a reference computer (install the operating system, applications, and make any other changes that you want).
    2. Ensure that you have the correct version of Sysprep.exe on the computer.
    3. At a command prompt on the reference computer, change folders to \Windows\System32\Sysprep or the folder that contains Sysprep.exe and Setupcl.exe.
    4. Type one of the following:
·         On computers running Windows 8, Windows 7, Windows Vista and Windows Server 2012, Windows Server 2008 R2 and Windows Server 2008, run the command sysprep /oobe /generalize /reboot. If you prefer, you can also use the Sysprep graphical user interface by double-clicking Sysprep.exe.
·         On computers running Windows XP, run sysprep -mini –reseal -reboot.
    1. When the computer restarts, perform a network boot on the computer by pressing F12.
    2. In the boot menu, select the capture boot image that you created in the preceding procedure, and then press ENTER.
    3. You will be presented with the Windows Deployment Services Image Capture Wizard. Click Next.https://lh3.googleusercontent.com/GB2cEHq73cHXrc_U9Z62Zi4nS_ewM_AQKTBMGZdPbb5UKHw43Cwmj8Skhql0NGyRMmHGTVnKaJt1tKWWBSXGtWEFgk9vbf3L-Yum_YKaKcLDHgaWULrE_nprJB2tlMJKDg
    4. On the Directory to Capture page, select Volume to capture, enter your Image name and Image description. Click Next.https://lh4.googleusercontent.com/WE39E7Sho0PuEFd09XDzgTqFeH6NVlyX-EviMUy1Z3OFw4Ua_Noxlrebu-xWhylUdaDzg7yLvJvFXo-Emu0dXEadvYgQcOmon2sQBBshjixMCxNzX7EAdiSMyRHT7F-kEQ
https://lh6.googleusercontent.com/9FV5IvILZ8uxzCbvOHG7aTxoF8CKOSK22-vqdfphpwSV3MowmP7_JViAz0U4brwXpEwUUowMY4Z3Ll0eE2_vVYn7NHDLb7EJDg53HxtECprwUGe1_OpbBNwZYkeOQYlDTQ*Important
Referring to Volume to capture, you will see only drives that contain operating systems prepared with Sysprep. If you do not run the command in step 4, you will not see any drives to capture.
9.            Click Browse next to Name and location and browse to a local folder where you want to store the captured install image. Type a name for the image, using the .wim file name extension, and then click Save. Note that this location can be a mapped network drive.
https://lh6.googleusercontent.com/xz9LjUz0QchnJWfgVY8gFQRrMOpCdacnuzbhJVRYpKp-5nrYPSUfrV8cQvVtlPSPaqkE9E8OVqBagkz7ouvNwtPLzy6G3IYF9_FDECegTmganHCWxz3uaMmlo0G1LouLTQ*Important
You must enter a local location to save the new image; otherwise, you will not be able to capture the image. This requirement is enforced to avoid image corruption if there is a network malfunction.
10.          Select the Upload Image to a Windows Deployment Services check box.

11.          Click Connect. If prompted for credentials, provide a user name and password for an account with permissions to connect to the Windows Deployment Services server.https://lh4.googleusercontent.com/mre2ZmCx9cbiczYRhfQZ6qZpi9d2-pE40Jjt0QvlL_zGKBLJTLi3BA_KA6ic_yg9tKf8IFFuiOC6B5hPnkxd9u2BPZWZc9lKD4IKn69-ME4BXRtDjrZxFTcKhsHlH2c8Eg
        1. Select your Image Group Name. Click Next. The wizard will now complete and create a custom installation image and store it in the Windows Deployment Services store.
        1. Click Finish
https://lh3.googleusercontent.com/guFKnEBUTRpV8ZwPDzceDQCYNStjmL-NpFGbLdhL5UdtO24cWHBttFNlOQmkWrzjuSXmvHrjs81Vy0eHzTECp8yVXn1MrsM1YOCMRtPXJrdLpi5oIpp6qd1fIZbyL-7U2A
Steps for creating a Discover Image

Why Discover Image?
        • If you have a computer that is not PXE enabled, you can create a discover image and use it to install an operating system on that computer. Otherwise, you can skip this section.
        • When you create a discover image and save it to media (a CD, DVD, USB flash drive, or other type of media), you can then boot a computer to the media.
The discover image on the media locates a Windows Deployment Services server, and the server deploys the install image to the computer. You can configure discover images to target a specific Windows Deployment Services server. This means that if you have multiple servers in your environment, you can create a discover image for each one, and then name them based on the name of the server
Required items:
        • A 1GB USB Flash drive or greater is required for this recipe
        • The Windows 8 RTM ISO File or DVD (ISO Preferred)
        • A PC Running Windows 8 Release Preview or RTM
        1. In the Windows Deployment Services MMC snap-in, expand the Boot images node.
        2. Right-click the image you want to use as a discover image.
        3. Click Create Discover Image
        4. In the Metadata and Locations page, enter your Image Name and Image Description. In the location and file name, click Browse and select the location for storing your discover boot image. Enter the name of your discover image. Optionally, enter the name of your Windows Deployment Services server that you want to respond when you boot a computer into this image. Click Next.https://lh6.googleusercontent.com/Yn3Cn76Qkin_K0HB-9Abd65UvAIOjV3mU5SUrdm2WzZSqrO5bh43faUL_sLG3mN27o8ACC_vnzZ-lUM9wzTaQXT5MPMKfOB97fATY9Qdgc43Wo8XU_imxPH8KfndxnQxLw
        5. Click Finish.
        1. Start an Administrative Command Prompt
        2. Type “cd \” and press Enter
        3. Type diskpart
        4. Follow the example below.  Please note you will need to discover which disk number belongs to your flash drive.  Observe the “List disk” command and use drive size to find which drive is your USB flash drive.
        5. Please use the below diskpart session as the your guide to preparing the USB flash drive

DISKPART> list disk

 Disk ###  Status         Size     Free     Dyn  Gpt
 --------  -------------  -------  -------  ---  ---
 Disk 0    Online         1863 GB      0 B
 Disk 1    Online         3828 MB      0 B

DISKPART> select disk 1
Disk 1 is now the selected disk.

DISKPART> clean
DiskPart succeeded in cleaning the disk.

DISKPART> create part primary
DiskPart succeeded in creating the specified partition.

DISKPART> select part 1
Partition 1 is now the selected partition.

DISKPART> format fs=fat32 quick label=WDSUSB
100 percent completed
DiskPart successfully formatted the volume.

DISKPART> assign letter=u
DiskPart successfully assigned the drive letter or mount point.

DISKPART> exit
Leaving DiskPart...

        1. Now you need to mount the Windows 8 ISO file (by right-clicking the ISO and saying “Mount”) or inserting the Windows 8 DVD.
        2. For this we will assume the DVD drive letter for this disc is E:
        3. Using the same command prompt window from diskpart you will be running a copy command to copy the needed files.
        4. Please note Drive letter U: is my USB Flash Drive and drive letter E: is the DVD drive or Mounted ISO file.
        5. Type into the Administrative Prompt: robocopy E:\ U:\ /E /S /XF Install.WIM /XF Boot.WIM
        6. Once this is done then browse to U:\sources\  and copy your WDS Dicscover WIM file into this folder
        7. Rename the WDS Discover WIM file in U:\sources\ to boot.wim
        8. Boot the client computer to the media. You may need to change the boot order in the client BIOS to do this. When the client boots to the media, your experience will be exactly the same as if you had booted to the network




Setting up Multicast Transmission

Multicast transmissions enable you to deploy an image to a large number of client computers without overburdening the network.
When you create a multicast transmission, the image is sent over the network only once, which can drastically reduce the amount of network bandwidth that is used. Note that data is transferred only if clients request data

·         Routers that support multicasting.
·         At least one install image that you want to transmit on the server.
·         The Boot.wim file from the latest version of Windows Server (Windows Server 2012).
        1. Right click ‘Multicast Transmission’ and click Create Multicast Transmission in WDS Console.


12.          Type a name and click Next

https://lh5.googleusercontent.com/zDqXieg_n31QKL73w-MIRExtxTqRKnSFCoKqtS41qJM6x0S9h6joqeu26N7rg6UMjOUJOImVO5fHO97zvAraLY98XsPGindhn8AJWYvCIBixjNsJ0V1N9QrRIraMkAmsUA
13.          Select the image that you want to transmit using multicasting and click Next

Select Auto-Cast option and click Next

https://lh5.googleusercontent.com/7maMfc15bmI2YqtutiPqkTU803CivJ1BlXJ35Cr5eGn-k8F1-XQvB6j-kmd638-ZcaY6fZNQ6t2oS2wR5gGvAYRzYQcC5WE0Fi1h5gSvBoNkkTa_xTh-We_ozHl7y-LMfA
14.          Click Finish to complete the process
15.          We can check the status in Console After it.

https://lh3.googleusercontent.com/gXWZBY0aF-OG44Tifa2cUcvH6Y9VyG6uhQbeE6qabNpXPKnM2s7zFGEmLEUaess499gyCHiURDdVqmmfNWcKXYbFANjI8xOZYUYYTFsZwmPYLNBw2QXHGNzoXPTn5oOXBQ
Note: We need to authorize the WDS server in DHCP for the clients to recognize. Step 25 and 26 describes the procedure
16.          Open your local DHCP server and right click the DHCP and select Manage authorized servers

https://lh5.googleusercontent.com/z1vShrQ4YVuC2Bkv253ejIMr7M9goxrc0eSQWoqSNK31SegyH0UM4N3RC_dEKoqFXYoqOaHz3WPWXCJ2PqbUT923rHaUFzb4AH6peOQxT3f9iCMIZfMZhjpQttvXrjqTEg
17.          In the next window, click ‘Authorize’ and enter the IP of WDS server

https://lh6.googleusercontent.com/AcPISMjA4plmJTpD-pCYXmRq6tfxCCfH6Of4Kg8Q4mzOC04yVQI_tUSXEBqZ2yjcKGoHWjfSTgAKxfGir7qrJGzHM2gPD7kiU7Yy7YKL_KqWIraxDLgRSOlqfEt7qpk9Kw
18.          WDS server is ready for deployment