Table Of Contents
- Part 1 – The Domain
- Part 2 – DNS
- Part 3 – DHCP
- Part 4 – AD OUs, Groups And Users
- Part 5 – Certificate Authority
- Part 6 – WSUS
- Part 7 – Central GPO Store
- Part 8 – SQL Server
- Part 9 – MDT With Chocolatey Integration
The next step to your automated lab is to set up a DHCP server and to authorize it in your Active Directory. You can customize it completely with variables in the script.
You can define a range for DHCP with tha variables $StartRange and $EndRange. Only IPs in that range will be assigned to machines. I make of use of that feature in order to have some free IPs for my Netscaler SNIP, load balancer and gateways and I don’t have to worry about double assigned addresses. On top I always use 192.168.137.0/24 because 192.168.137.1 is the default IP of the internal hyper-v network adapter. Follow this tutorial to set up internet access for Hyper-V VMs with an internal switch and NAT.
For the scripts to work I assume that you have a Windows Server 2012 R2 which will be your domain controller, DNS and DHCP Server.