While testing Powershell DSC (Desired State Configuration) for Active Directory Domain (First Domain Controller) setup I was getting below error constantly.
Verification of prerequisites for Domain Controller promotion failed. A NetBIOS domain name must be specified.
+ CategoryInfo : NotSpecified: (:) [], CimException
+ FullyQualifiedErrorId : Test.VerifyDcPromoCore.DCPromo.General.32,Microsoft.DirectoryServices.Deployment.PowerShell.Commands.InstallADDSForestCommand
+ PSComputerName : 192.168.33.41
I checked my script and tried to modified it almost more than 50 times but issue didn't seems be to resolved. Everything was good. Then I decided to change my domain name from vcloud.lab to vcloud-lab.com and it worked, I was able to install active directory using Powershell DSC code. It looks like a bug (not sure as but when I try it using Part 1 : I install and configure AD using GUI way or Part 2 : AD PowerShell commands, I can use vcloud.lab domain name) in current DSC module xActiveDirectory. It doesn't accept unknown top level domain names ie .lab, I tried with .local and found it is working.
Useful Blog related to DSC
POWERSHELL PS REMOTING BETWEEN STANDALONE WORKGROUP COMPUTERS
DSC (DESIRED STATE CONFIGURATION) : DEPLOYING ACTIVE DIRECTORY
PART 1 : POWERSHELL - CREATE LOCAL IIS WEB REPOSITORY FOR DSC MODULE
POWERSHELL: USE PARAMETERS AND CONFIGURATION FROM INI FILE, USE AS SPLATTING
POWERSHELL CREATE HASHTABLE FROM MICROSOFT EXCEL