PlagueHO / LabBuilder

PowerShell Module for building a Hyper-V Lab environment from a simple XML configuration file.
MIT License
223 stars 39 forks source link

DHCP scope not created and server does not join domain. DSC troubleshooting #343

Closed cirillu69 closed 4 years ago

cirillu69 commented 4 years ago

$PSVersionTable Name Value


PSVersion 5.1.17763.771 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.17763.771 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

(Get-WmiObject Win32_OperatingSystem).Version Windows 10 OS: 10.0.17763

ModuleType Version Name


Script 1.0.5.105 LabBuilder

I am using the following iso to create a windows 2016 domain, DC and DHCP Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh

UInfortunately the SA-DC1 takes a considerable time to become a domain controller and the DHCP server does not join the domain AND the scope is not created.

How do I troulbleshoot DSC so that I can figure out what is wrong?

<?xml version="1.0" encoding="utf-8"?>

<labbuilderconfig xmlns="labbuilderconfig" name="Sample_WS2016_DFSHubAndSpoke" version="1.0">

Sample Windows Server 2016 Lab Configuration DC, DHCP, EDGE and Hub and Spoke DFS replication group.

<settings labid="LABBUILDER.COM " domainname="LABBUILDER.COM" email="admina@LABBUILDER.COM" labpath="c:\mylab\" dsclibrarypath="c:\mylab\DSCLibrary\" />

<templatevhds isopath="ISOFiles" vhdpath="VHDFiles" prefix="" > <templatevhd name="Windows Server 2016 Datacenter Full" iso="14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO" url="https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2016" vhd="Windows Server 2016 Datacenter Full.vhdx" edition="Windows Server 2016 Datacenter Evaluation (Desktop Experience)" ostype="Server" vhdformat="vhdx" vhdtype="fixed" generation="2" vhdsize="40GB" /> <templatevhd name="Windows Server 2016 Datacenter CORE" iso="14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO" url="https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2016" vhd="Windows Server 2016 Datacenter Core.vhdx" edition="Windows Server 2016 Datacenter Evaluation" ostype="Server" vhdformat="vhdx" vhdtype="fixed" generation="2" vhdsize="40GB" />