important note : If you need the to kick Windows Server 2016 ISO from a USB flash drive, use the Windows USB/DVD Tool available to download send from Microsoft .
Installing Windows Server 2016
Boot the server from the Windows Server 2016 media and on the “ Select the operate on System you want to install ” blind, select the option “ Windows Server 2016 Standard ” or “ Datacenter ” edition with “ Desktop Experience ” in brackets. “ important eminence : ” You can no long add and remove the GUI ( Desktop Experience ) with Windows Server 2016 as you could with Windows Server 2012 & 2012 R2. This is ascribable to numerous problems with keeping the facility and removal march coherent with updates. With Windows Server 2016, the only way to add or remove the GUI is to re-install and choose one of the server editions with the “ Desktop Experience ” choice.
Reading: Installing and Configuring Windows Deployment Services for PXE Booting with Windows Server 2016
Initial Configuration
once the install work has completed, you will be prompted to set the Administrator password .
- Set the local “Administrator” password.
- Log in to Windows as the Administrator user.
- Open an elevated command prompt by pressing “Win + X” and selecting “Command Prompt (Admin)” from the menu.
- Type
sconfig
to get the Server Configuration menu. - You’ll need to configure at least the Network Settings – IP address, subnet mask, gateway, and DNS.
- You may want to enable Remote Desktop.
- Add the server to the domain – you’ll be asked if you’d like to change the computer name, and prompted to restart the server.
- After the restart, log in as a user with administrator privileges to the server.
crucial note : Windows Server 2016 shipped with a tease that causes it to fail to get updates from WSUS out of the box. To work around it you should update directly from the internet or download and install the latest accumulative update for Windows Server 2016, which at the time of writing is KB4093120, download here .
Additional Storage Configuration
You may want to configure extra locally attach disks or iSCSI/MPIO repositing. Creating new volumes that are locally attached can be done via the diskpart
command tune creature. Below are the commands to create a new, NTFS formatted volume, with the drive letter of E:\
and the name “ Data ”, from a second harrow in the server using the diskpart
tool. First, run diskpart
from the instruction line, then use the follow commands :
|
|
The MPIO feature must be installed before the tool is available. You can do this via PowerShell :
|
|
When MPIO is installed you can load the MPIO utility using mpiocpl
. For the iSCSI utility program you can use iscsicpl
. iSCSI is installed as function of the base Windows Server 2016 feature set .
Install Windows Deployment Services (WDS)
If you ’ ve precisely logged on to the server, open an lift command prompt as before, by pressing “ Win + X ” and selecting “ Command Prompt ( Admin ) ” from the menu. Type “ PowerShell ” into the command line window before running any of the commands below .
- First we need to install the WDS feature:
|
|
now we need to run some post install tasks .
- The following command will initialize the WDS server and use the
E:\
driver to store it’s content.
|
|
WDS is now installed and the initial shape is complete, but some further configuration is required via the WDS Microsoft Management Console ( MMC ) .
- Log in to the server as a user with administrator privileges.
- Open the “Windows Deployment Services MMC” under “Windows Administrative Tools” in the Start Menu.
- Expand the “Servers” node and Right click on the
server-name.contoso.com
and select “Properties”. - On the “PXE Response” tab select the “Respond to all client computers (known and unknown)” do not tick the “Require administrator approval option”.
- Click “Apply” and close the window.
Adding a PXE Boot Image from Microsoft Deployment Toolkit
To add a ‘ LiteTouch ’ boot visualize from MDT to WDS :
- Log in to the server as a user with administrator privileges.
- Open the “Windows Deployment Services MMC” under “Windows Administrative Tools” in the Start Menu.
- Navigate to “Servers” >
server-name.contoso.com
> “Boot Images”. - Right click in the empty window, and select “Add Boot Image”.
- Navigate to the “Boot” folder in the deployment share of MDT and select
LiteTouchPE\_x64.wim
. - Complete the wizard.
To test the new boot prototype, create a modern VM in Hyper-V with the following shape :
- Generation 1
- 2x vCPUs
- 4GB of RAM
- Legacy Network Adapter with access the local network.
- Virtual Hard Drive of at least 80GB.
- Boot from the legacy Network Adapter.
- If using Hyper-V on Windows 10 1709 and above, make sure “Use Automatic Checkpoints” is disabled.
Start the Virtual Machine and you should be prompted to press F12 to boot and the deployment environment should start good as if you were booting from the LiteTouchPE_x64.iso
. If the VM is not booting from the network, it could be that the VM is on a different VLAN. To enable PXE booting on different VLANs you ’ ll need to add the IP address of the WDS server as a IP assistant address on each VLAN on the route switch .
Configuration for BIOS and UEFI Clients
If you have a mix of devices with both BIOS and UEFI firmware that you wish to PXE kick, some extra shape may be required depending on the network and versions of DHCP and WDS. On a network with a Windows Server 2016 DHCP waiter, WDS waiter and Cisco switches with a assistant address configured, I haven ’ triiodothyronine needed to do this shape but I wanted to include it for completeness. Your mileage may vary. Most of the adopt information is from a very helpful video from BranchCache Bob – here ’ s the video. It is assumed that you have a Microsoft Windows Server running DHCP. The first base thing to do is to define the seller classes for both the BIOS PXE Client and the UEFI PXE Client .
- Go to “DHCP”, right-click on “IPv4”
- In the “DHCP Vendor Classes” window, click Add
- For the “Name” enter “PXEClient (UEFI x86)”
- For the “Description” enter whatever you want
- Under the “ASCII” text enter
PXEClient:Arch:00006
– Important Note: you will not be able to paste this text, and it’s also case-sensitive - Click OK to add it to the list
- Now repeat steps 2 – 6 for “PXEClient (UEFI x64)” with
PXEClient:Arch:00007
as the ASCII value. - Finally, repeat steps 2 – 6 for “PXEClient (BIOS x86 & x64)” with
PXEClient:Arch:00000
(five zero’s) as the ASCII value.
You should now have three extra seller classes .
now we need to create policies in DHCP so that the correct files are served to the correct clients. You will need to do this for each DHCP telescope.
- Go to “DHCP” and expand the scope you wish to create a policy for
- Right-click on “Policies” and choose “New Policy”
- Enter “PXEClient (UEFI x64)” for the name
- Enter a “Description”, or leave it blank. Click Next
- On the “Configure Conditions for the policy” screen, click Add
- In the “Add/Edit Condition” window, click the “Value:” drop down menu
- Choose the “PXEClient (UEFI x64)” vendor class you created earlier
- Tick the “Append wildcard” check box and then click Add and finally OK
- Click Next on the “Configure Conditions for the policy” screen
- On the “Configure settings for the policy” screen, click No for the “Do you want to configure an IP address range for the policy”. Click Next
- “Please Note:” if DHCP is on the same server as WDS, you will need to set option 060, if WDS is on a different server, you do not need to set option 060
- On the “Configure settings for the policy” screen, scroll down until you see options “060” (if applicable), “066” and “067”
- Tick option “060” and enter “PXEClient” if applicable
- Tick option “066” and enter either the FQDN or the IP address of the WDS server.
- Tick option “067” and enter
boot\x64\wdsmgfw.efi
– this is the x64 UEFI boot file for WDS. Click Next. - On the “Summary” screen, if all the details are correct, click Finish
- Now repeat steps 2 – 14 for “PXEClient (UEFI x86)” with
boot\x86\wdsmgfw.efi
as option “067” - Finally, repeat steps 2 – 14 once again for “PXEClient (BIOS x86 & x64)” with
boot\x64\wdsnbp.com
as option “067” and leave option “060” empty
If you expand the scope Options folder you should see the new options you good created and under policy name should be the names of the policies you just created. You should now be able to boot both a UEFI and BIOS devices from the network. Please note, if DHCP is installed on the lapp server as WDS, you will need to check both the “ Do not listen on DHCP ports ” and “ Configure DHCP options to indicate that this is besides a PXE server ” options .
If you ’ d like to contact me, please leave a gossip, send me a tweet, or you can join my Discord server .
-Mike