microsoft / MSLab

Azure Stack HCI, Windows 10 and Windows Server rapid lab deployment scripts
MIT License
1.2k stars 287 forks source link

Does not respect config and deployment fails with custom domain #478

Closed donchia closed 2 years ago

donchia commented 2 years ago

Trying to specify custom DomainNetbiosName and DomainName in the $LabConfig=@ deployment fails

jaromirk commented 2 years ago

Hey donchia, can you post your labconfig here? I would give it a try. THX!

donchia commented 2 years ago

It does work when I change domain later with "rendom" on DC from corp.contoso.com to custom.com, but I am not able to setup initial DC with custom domain config - deployment stuck in the middle.

$LabConfig=@{ DomainAdminName='LabAdmin'; AdminPassword='LS1setup!'; Prefix = 'B19Lab-' ; DomainName='custom.com' ; DomainNetbiosName='CUSTOM'; DCEdition='4'; Internet=$true ; SwitchName='b19LabSwitch' ; AdditionalNetworksConfig=@(); VMs=@()}

$LABConfig.VMs += @{ VMName = 'W10_1' ; Configuration = 'Simple' ; ParentVHD = 'Win10_G2.vhdx' ; MemoryStartupBytes= 4GB ; AddToolsVHD=$True ; DisableWCF=$True}

jaromirk commented 2 years ago

Just tried it... worked like a charm... I'm using powershell 5 image